Vous n'êtes pas identifié(e). Pour pouvoir écrire ou répondre à un message, vous devez vous connecter ou vous créer un compte sur JAWA.

#1 26-11-2018 09:04:40

spook1
Membre
Inscription : 12-02-2018

variable in array variable? nesting possible?

I managed to define a condition like:

ANSWER$*${{LEVEL}}={{KEY}}

So I can describe different levels in a single array.

Now I also want to write in a rowe that fits a level.

When I try something like:

VALUE = {{ANSWER$1${{LEVEL}}}} I get an error.

is there a workaround to achieve this nesting of variables?

I need it to place the cards in order depending on the level.

Thanks in advance for your interest in my question ;)

Martijn

Hors ligne

#2 28-11-2018 08:58:15

jawa
Admin

Re : variable in array variable? nesting possible?

Hello

The correct syntax should be just :
VALUE = {{ANSWER$1$LEVEL}}

This is the theoriacl syntax, that should work both in conditions and in effects.
Tell me if it's not the case !

=> when specifying an array coordinate, a text string will always be considered as a variable name

More globally, in JAWAscript syntax, you'll never be allowed to put a {{xxx}} statement inside another {{...}} statement (no imbrication)

#3 28-11-2018 09:19:42

spook1
Membre
Inscription : 12-02-2018

Re : variable in array variable? nesting possible?

Great! That's it.
It works perfect.

Now I can define the different level structures in trows of one array. :-)

Hors ligne

Pied de page des forums