Difference between revisions of "Invalidate-argument"

From FreeSpace Wiki
Jump to: navigation, search
(New page: invalidate-argument Invalidate-argument (Conditional operator) Removes an argument from future consideration as a special data item. Takes 1 or more arguments... All: ...)
 
m (I guess invalidate-argument works for all argument-based conditionals and not for every-time-argument, only.)
Line 5: Line 5:
 
     All: The argument to remove from the preceding argument list.
 
     All: The argument to remove from the preceding argument list.
 
===Comments===
 
===Comments===
Using this is required if you intend to cycle through a list of non-recurring arguments in an event based on [[every-time-argument]]. Otherwise, an argument remains valid even after it has been used once.
+
Using this is required if you intend to cycle through a list of non-recurring arguments in an event based on conditionals featuring arguments, like [[every-time-argument]] and [[when-argument]]. Otherwise, an argument remains valid even after it has been used once.
 
[[Category:SCP SEXPs]]
 
[[Category:SCP SEXPs]]

Revision as of 09:41, 15 March 2009

invalidate-argument
    Invalidate-argument (Conditional operator)
    Removes an argument from future consideration as a special data item.
    Takes 1 or more arguments...
    All: The argument to remove from the preceding argument list.

Comments

Using this is required if you intend to cycle through a list of non-recurring arguments in an event based on conditionals featuring arguments, like every-time-argument and when-argument. Otherwise, an argument remains valid even after it has been used once.