how to unset a variable?

  • Code
    ifnot (startscene === null,
    blah
    )

    works when variable is not set, great. So I try to kill it
    set(startscene,null);
    or
    set(startscene,'');
    or
    set(startscene);

    and the above code fails.
    So I have to check for
    ifnot (startscene === null,
    and
    ifnot (startscene == null,

    ?
    or is there a way to unset a variable?

  • Hi,

    killing/removing a variable is currently not possible,
    but I already thinking about adding a "delete(var)" action for that,

    best regards,
    Klaus

    that would be great.
    Currently I have to use for placeholder variables for loops etc something like actionname-i so no interference with similar placeholder variables from other actions can take place ;-)) I dont know how often did fall over my legs here ;-))
    a nother big step towards a own programming language could be if variable would be only valid inside an action with option to be exported globally

    Liebe Gruesse,
    Georg

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!