# Frictional Game Wiki

### Site Tools

hpl2:amnesia:script_language_reference_and_guide:control_flow_-_conditional_statements

# Differences

This shows you the differences between two versions of the page.

 hpl2:amnesia:script_language_reference_and_guide:control_flow_-_conditional_statements [2013/01/03 02:19]thegreatcthulhu created hpl2:amnesia:script_language_reference_and_guide:control_flow_-_conditional_statements [2013/01/03 02:24]thegreatcthulhu 2013/01/03 16:15 thegreatcthulhu [Comparison Operators] 2013/01/03 16:15 thegreatcthulhu [Comparison Operators] 2013/01/03 16:14 thegreatcthulhu [Comparison Operators] 2013/01/03 02:24 thegreatcthulhu 2013/01/03 02:24 thegreatcthulhu 2013/01/03 02:19 thegreatcthulhu created Next revision Previous revision 2013/01/03 16:15 thegreatcthulhu [Comparison Operators] 2013/01/03 16:15 thegreatcthulhu [Comparison Operators] 2013/01/03 16:14 thegreatcthulhu [Comparison Operators] 2013/01/03 02:24 thegreatcthulhu 2013/01/03 02:24 thegreatcthulhu 2013/01/03 02:19 thegreatcthulhu created Next revision Both sides next revision Line 4: Line 4: ===== At a Glance ===== ===== At a Glance ===== - ==== The If-Statement === ==== The If-Statement === Line 263: Line 262: ==== Comparison Operators ==== ==== Comparison Operators ==== - * ''​=='' ​--> equals + * ''​==''​ -> equals - * ''​!='' ​--> not equals + * ''​!=''​ -> not equals - * ''<'' ​--> less then + * ''<''​ -> less then - * ''​%%<​=%%'' ​--> less then or equal to + * ''​%%<​=%%''​ -> less then or equal to - * ''>'' ​--> larger then + * ''>''​ -> larger then - * ''>​='' ​--> larger then or equal to + * ''>​=''​ -> larger then or equal to Comparison operators are the usual mathematical operators you're familiar with. The result of their application is a ''​bool''​ (e.g. a < b is either ''​true''​ of ''​false''​). This is why they can be used in if-statement and loop conditions. This also means that their result can be assigned to ''​bool''​ variables, like this:\\ Comparison operators are the usual mathematical operators you're familiar with. The result of their application is a ''​bool''​ (e.g. a < b is either ''​true''​ of ''​false''​). This is why they can be used in if-statement and loop conditions. This also means that their result can be assigned to ''​bool''​ variables, like this:\\