
-----------------------------------
aldreneo
Tue May 02, 2006 5:13 pm

Sql style variables
-----------------------------------
How do I do...

get name as result
for name="hi" message="foo"
for name="hi" message="bar"
else for name message="noo"

So that I can have more than one name each with a message assigned to them[/code]

-----------------------------------
HellblazerX
Tue May 02, 2006 5:26 pm


-----------------------------------
I suggest that you store those names and messages into separate arrays, and you can call on them in order.  There's a nice array tutorial made by Tony that can be found [url=http://www.compsci.ca/v2/viewtopic.php?t=366]here.

-----------------------------------
Junkhead
Tue May 02, 2006 6:11 pm


-----------------------------------
Yeah, arrays are a must to know if youre doing serious programming in Turing.

-----------------------------------
MysticVegeta
Tue May 02, 2006 6:12 pm


-----------------------------------
in any language actually

-----------------------------------
Junkhead
Tue May 02, 2006 6:15 pm


-----------------------------------
Actually, that's very true.

-----------------------------------
wtd
Tue May 02, 2006 6:46 pm


-----------------------------------
Well, in a fair number of them you can get away with mostly using lists and tuples.

-----------------------------------
Clayton
Tue May 02, 2006 8:45 pm


-----------------------------------
you could also make a record to store the information you want, check out the Turing Tutorials on records to get an idea on them if you dont already know how to use them
