{Var:${cartid}}

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Regulate
Posts: 14
Joined: 23 Jul 2020 12:10
{Var:${cartid}}

Post by Regulate »

Bernd,

Any idea why he's not taking this one?
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: {Var:${cartid}}

Post by radio42 »

Because the syntax is completely wrong.
Don’t know what you want to achieve, but the pure macro is just used like this: ${cartid}

Take a look to the Appendix of the User Manual for all available macros and its use.

The ${VAR:name} macro is used for user defined variables.
Regulate
Posts: 14
Joined: 23 Jul 2020 12:10
Re: {Var:${cartid}}

Post by Regulate »

i wanna use a variable in a variable. I made a variable using exec_variable_set. No i wanna call that variable with another variable. so ${Var:${cartid}}. which would mean for me get variable with the name of the cartid number. I hope i explain this well.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: {Var:${cartid}}

Post by radio42 »

That doesn’t make sense. And you need to be exact with the syntax and exact command names...
If you want to set a user variable with the value of a macro you can use:
EXEC_VAR_SET myvar|${cartid}

If you then want to retrieve that user variable value back, you use:
${VAR:myvar}

A variable in a variable doesn’t exist; nor does the ProppFrexx syntax support pointers or alike. But that is also not even needed.

Post Reply