FANDOM


If ()
If () block
Category Control
Type C

The if () block is a Control Block and a C Block. It reads the boolean statement embedded in its hexagonal shape, taking action if the statement is read as true. Nothing will happen if it is read as false.

Common UsesEdit

This block is widely used, as it is one of the few ways to read statements. Defining every possible use of it would take a long time, but some examples are shown below:

  • Simply reading code

If statement1

  • Continuously checking if input is given

If statement2

  • Controls

If statement3


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.