Inline variable assignment

The help files say:
To assign a variable this way, you'll tell the program to assign an expression to a variable right within a table roll or math expression using an '=' or '==' sign.

The basic usage is with a single equals sign. For example:
table: example
[@name=pcname&;#93; was the name, the name is [@vartest&;#93;

table: pcname
Joe
Mike
Grogar the Usurper
Tom

table: vartest
{name}

In this example, the expression [@name=pcname] assigns the results of a roll on the pcname to a variable named {$name}.

However it looks like, at least on the Windows IPP 3.0b, you have to omit the @ symbol. Hopefully knowing that will be helpful to others. Would be good to fix in the Help (or fix the program so it works with the @, whichever is more correct).

Comments

  • Wish I'd have seen this a couple of days ago, spent a couple of hours figuring that out.

Leave a Comment