varpush

beasscript-logo-small

tools=varpush=[variablename]=[placeholder]

 

save all instance-Variables in the Variable <variable> beginning with the placeholder

you can pop the Variables with tools=varpop=[variable]

 

example:

// Push all Variable in "push1" beginning with "e_"

tools=varpush=push1=e_

...

// restore alle Variables

tools=varpop=push1

 

with

tools=varpop=push1=reset

you can delete all current Variables and set the Variablestate from "push1"

 

Example:

setvar=ls_test=hello world

tools=varpush=mytest

meldung=1. <ls_test>

// 1. hello world

setvar=ls_test=second world

setvar=ls_test2=third world

meldung=2. <ls_test> / <ls_test2>

// 2. second world / third world

tools=varpop=mytest

meldung=3. <ls_test> / <ls_test2>

// 3. hello world / third world

tools=varpop=mytest=reset

meldung=4. <ls_test> / <ls_test2>

// 4. hello world / <ls_test2>

 

see: varpop, pushvar, popvar