Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Can I assign values to an array?

Can I assign values to an array? il y a 1 an 1 mois #93307

  • rodriguezm1
  • Portrait de rodriguezm1
  • Hors ligne
  • Fresh Lemon
  • Messages : 10
  • Karma: 0
I have an array question called Q1. It has 3 subquestions: sq1, sq2, sq3. I also have another question, OTHERQ.

I want to be able to assign values to Q1_sq1, Q2_sq2 and Q3_sq3

What I'd like to do is an if statement. Something like

{if(is_empty(OTHERQ),Q1_sq1=0,Q1_sq1=100}
{if(is_empty(OTHERQ),Q1_sq2=0,Q1_sq2=100}
{if(is_empty(OTHERQ),Q1_sq3=0,Q1_sq3=100}


This doesn't seem to work if I type it into an "equation" type question. Am I doing something wrong? What do I have to do to make this happen?
Dernière édition: il y a 1 an 1 mois par rodriguezm1.
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.112 secondes
Donation Image