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 16:15]thegreatcthulhu [Comparison Operators] hpl2:amnesia:script_language_reference_and_guide:control_flow_-_conditional_statements [2013/01/03 16:15]thegreatcthulhu [Comparison Operators] Both sides previous 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 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 Line 273: Line 273: - //​Important://​ Note that the comparison operator ''​==''​ (used to compare two values for equality) is //​different//​ from the //​assignment operator// ''​=''​ (which is used to assign values to variables). //​Don'​t use the assignment operator// when checking for equality in your conditions - this is a common source of error. Always double check to make sure you typed in ''​==''​. + ​//​Important://​ Note that the comparison operator ''​==''​ (used to compare two values for equality) is //​different//​ from the //​assignment operator// ''​=''​ (which is used to assign values to variables). //​Don'​t use the assignment operator// when checking for equality in your conditions - this is a common source of error. Always double check to make sure you typed in ''​==''​.​ ==== Using Logical Operators ==== ==== Using Logical Operators ====