User Tools

Site Tools


Table of Contents


push <variable name> <word>
pop <variable name>


PUSH appends the given word to the given variable, padded with a single space. The variable name itself may not contain a leading '$'; the command uses the variable itself, not the expanded contents. If the variable does not exist, it is created containing the given word(s) (just as if ASSIGN were used).

Just as with the push function, if xdebug dword is turned on, then <word> is treated as one word and it will be double quoted by the client before it is appended to the variable. If xdebug dword is turned off, then you get the epic4 behavior.


POP is the exact opposite of PUSH, in that it pops off the last word in the variable. If there is only one word in the variable, the variable is deleted. Both PUSH and POP are functionally equivalent to the $push() and $pop() functions, respectively.

push_command.txt · Last modified: 2007/03/23 16:38 (external edit)