Difference between revisions of "And-in-sequence"

From FreeSpace Wiki
Jump to: navigation, search
(a note)
 
Line 1: Line 1:
 
  And in sequence (Boolean operator)
 
  And in sequence (Boolean operator)
 
  Returns true if all of its arguments have become true in the order they are listed in.
 
  Returns true if all of its arguments have become true in the order they are listed in.
 +
 +
NOTE 1: This is more strict than might be apparent.  If argument 2 becomes true while argument 1 is still pending, then the operator will immediately return false because the arguments did not become true in the correct sequence.
 +
NOTE 2: This operator should not be used with when-argument or any -argument SEXPs because its method of caching arguments is not compatible.
 
   
 
   
 
  Returns a boolean value.  Takes 2 or more boolean arguments.
 
  Returns a boolean value.  Takes 2 or more boolean arguments.

Latest revision as of 03:22, 11 February 2022

And in sequence (Boolean operator)
	Returns true if all of its arguments have become true in the order they are listed in.

NOTE 1: This is more strict than might be apparent.  If argument 2 becomes true while argument 1 is still pending, then the operator will immediately return false because the arguments did not become true in the correct sequence.
NOTE 2: This operator should not be used with when-argument or any -argument SEXPs because its method of caching arguments is not compatible.

Returns a boolean value.  Takes 2 or more boolean arguments.

Notes

If you make a mistake in the hierarchy, you don't have to redesign the whole tree just to fix it. You can use Notepad to fix the order.