Not: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:not}} '''not''' is an internal flag in ZZT-OOP. It negates the result of condition checks which follow it within an #if statement. For example, <code...")
 
(Making description a little more precise)
 
Line 1: Line 1:
{{DISPLAYTITLE:not}}
{{DISPLAYTITLE:not}}
'''not''' is an internal flag in [[ZZT-OOP]]. It negates the result of condition checks which follow it within an [[if|#if]] statement. For example, <code>#if not foo give torches 1</code> will add 1 to the [[Torches]] counter if no flag named "foo" is set.
'''not''' is a condition modifier in [[ZZT-OOP]]. It negates the result of the condition check which follow it within an [[if|#if]] statement. For example, <code>#if not foo give torches 1</code> will add 1 to the [[torches]] counter if no [[flag]] named "foo" is set.
 


{{ZZT-OOP navbox}}
{{ZZT-OOP navbox}}

Latest revision as of 05:36, 14 February 2021

not is a condition modifier in ZZT-OOP. It negates the result of the condition check which follow it within an #if statement. For example, #if not foo give torches 1 will add 1 to the torches counter if no flag named "foo" is set.