Computer Science Canada

Sql style variables

Author:  aldreneo [ Tue May 02, 2006 5:13 pm ]
Post subject:  Sql style variables

How do I do...
code:

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]

Author:  HellblazerX [ Tue May 02, 2006 5:26 pm ]
Post subject: 

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 here.

Author:  Junkhead [ Tue May 02, 2006 6:11 pm ]
Post subject: 

Yeah, arrays are a must to know if youre doing serious programming in Turing.

Author:  MysticVegeta [ Tue May 02, 2006 6:12 pm ]
Post subject: 

in any language actually

Author:  Junkhead [ Tue May 02, 2006 6:15 pm ]
Post subject: 

Actually, that's very true.

Author:  wtd [ Tue May 02, 2006 6:46 pm ]
Post subject: 

Well, in a fair number of them you can get away with mostly using lists and tuples.

Author:  Clayton [ Tue May 02, 2006 8:45 pm ]
Post subject: 

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


: