Posted by: K4thos
« on: September 23, 2018, 07:16:17 AM »Nevermind, the same functions can be reused with different arrays via $EVAL, so clearing arrays is not really needed.
ACTION_CLEAR_ARRAY StringI'd like to request an action that actually clears the array rather then faking it (or make the current action affect VARIABLE_IS_SET). Example code that displays the value after "clearing" the array:
‘Forgets’ that the array string exists until its values are recalled. The actual variables’ values are kept, the only effect is that *PHP_EACH will not consider old values.
ACTION_DEFINE_ASSOCIATIVE_ARRAY array BEGIN ~a~ => ~b~ END
ACTION_CLEAR_ARRAY array
ACTION_IF (VARIABLE_IS_SET $array(~a~)) BEGIN
OUTER_TEXT_SPRINT var $array(~a~)
PRINT ~VARIABLE_IS_SET: %var%~
END