Parsing multiple variable into an array
#6

In this case it would look like this:

Array[0][(var1 == 1) ? (Var_1) : (Var_2)]

(if var1 == 1, then put Var_1 here, else Var_2)


There are some good examples in the wiki: https://sampwiki.blast.hk/wiki/Control_Structures#.3F:
Took me some time to understand it, too, it is a quite complex structure.
Reply


Messages In This Thread
Parsing multiple variable into an array - by Cameltoe - 14.11.2010, 22:30
Re: Parsing multiple variable into an array - by Mauzen - 14.11.2010, 22:37
Re: Parsing multiple variable into an array - by Cameltoe - 14.11.2010, 22:40
Re: Parsing multiple variable into an array - by Mauzen - 14.11.2010, 22:50
Re: Parsing multiple variable into an array - by Cameltoe - 14.11.2010, 22:54
Re: Parsing multiple variable into an array - by Mauzen - 14.11.2010, 23:05
Re: Parsing multiple variable into an array - by Cameltoe - 15.11.2010, 09:51
Re: Parsing multiple variable into an array - by Grim_ - 15.11.2010, 10:13
Re: Parsing multiple variable into an array - by Cameltoe - 15.11.2010, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)