Skip to content

Logic Blocks

SittingFox edited this page Feb 25, 2015 · 4 revisions

Logic Blocks

Blocks that are used for if conditions and boolean values are of this type.

If Blocks

If

If block

If block, filled

if (isTrue) (

}

If, Else

If, Else block

If, Else block

if (isTrue) (

} else {

}

If, Else If, Else

If, Else If, Else block

If, Else If, Else block

if (number < 2) (

} else if (number > 2) {

} else {

}

Boolean

Comparator

Comparator block, equal to

Comparator block filled in, equal to

number == 0

Comparator block, not equal to

Comparator block filled in, not equal to

number != 0

Comparator block, less than

Comparator block filled in, less than

number < 0

Comparator block, less than or equal to

Comparator block filled in, less than or equal to

number <= 0

Comparator block, greater than

Comparator block filled in, greater than

number > 0

Comparator block, greater than or equal to

Comparator block filled in, greater than or equal to

number >= 0

And/Or

And/Or block, and

And/Or block filled in, and

isTrue && number == 0

And/Or block, or

And/Or block filled in, or

isTrue || number == 0

Not

Not block

Not block, attached to variable

!isTrue

True/False

True/False block, true

true

True/False block, false

false

Null

Null block

null

Inline If

Inline If block

Inline If block, filled

isTrue ? 0 : 1

Clone this wiki locally