In the example below, new line breaks and indents are needed for the syntax to work correctly (line indentation takes the place of curly braces {} in Python). Indents are four spaces.
~if!~ ‹logical_test›:
‹when_true›
~else!~:
‹when_false›
OR (multiple conditions)
~if!~ ‹logical_test1›:
‹when_true1›
~elif!~ ‹logical_test_2›:
‹when_true2›
~else!~:
‹when_false!~
NB. The above example assumes a variable has been declared for profit. For more information, go to General > Variables.