If Sequence Exists Icon If Sequence Exists

This action can be used to check if the given sequence element exists in the game room. You give the element ID, as returned by the action Create Sequence, and if the sequence element exists in the room then the action will return true otherwise it will return false.

If you flag the "Not" argument, then the action will check to see if no such sequence element exists and if none are found it will return true.

Note that to add actions into the "if" block, they should be dropped to the side of the action, as shown in the image below:

If Sequence Exists dropping actions exampleThese actions will now be run if the "if" evaluates to true, while any actions dropped elsewhere will be performed after the "if" block.

 

Action Syntax:

If Sequence Exists Action

Arguments:

ArgumentDescription
SequenceThe element ID of the sequence element to check.

 

Example:

If Sequence Exists ExampleThe above action block code checks for to see if the sequence element stored in the variable "my_seq" exists and if it does, it then destroys it.