answersLogoWhite

0


Best Answer

It depends which programming/scripting language you use.

In PHP it can look this way ($i is a variable):

$i = 5;

if ($i > 0)

{

echo "Hello World";

}

?>

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you put a variable in an if statement in scratch?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you separate dependent and independent variables?

I do it by using an "if/then" statement. The variable behind the "if" statement is the independent variable. The variable behind the "then" statement is the dependent variable. Example: y = 3x3 + 4x2 - 6x +1 So if you tried "if y = 2", you're still stuck on your "then" statement. You don't really know what x is, do you? But if you try "if x = 1", then you can determine right away that y = 2. So x is your independent variable and y is your dependent variable.


How do you know when a number is not a solution of an equation?

When you put the number in place of the variable (like maybe the 'x' or the 'y') wherever the variable occurs in the equation, and the statement you get out of all the numbers you have is not true, then you know the number is not a solution.


How you declare a variable in c language?

you have to give a statement in the following syntax datatype variable;


How do you measure a particular variable?

A ________________ is a statement that describes how to measure a particular variable or define a particular term.


How do you calculate total variable expenses in a contribution income statement?

Total variable cost is typically the sum of all variable labor, variable materials, and variable overhead expenses.


What is a statement that's true for any number or variable?

the #


The statement to verify the relationship between interleukin and fatigue and dependent variable or independent variable?

Independent Variable: interleukin and fatigue Dependent Variable: the relationship -----inferential statistics


What is variable definition in c language?

variable definition means to declare the variable with its value. for example:- int i=10; this statement is a combination of declaration of integer i and assign its value to it,so it is a definition statement Note: assigning a value is not essential.


What is a select case statement used for in programming?

In programming, select case statement is a way to test the inside of a variable. It is used when one knows there is a limited number of things that can be in the variable.


What is the word for a statement that is true for any number or variable?

An identity.


What is T equals to 4ounce?

It is a definitional statement for a variable T.


Is this statement true or false that apatite can scratch calcite?

Yes.Apatite - Ca5(PO4)3OH - has a Mohs hardness of 5.Calcite - CaCO3 - has a Mohs hardness of 5.