Author |
Message |
aldreneo
|
Posted: 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] |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
HellblazerX
![](http://www.plamania.co.kr/shopimages/plmtest/2910040000213.jpg)
|
Posted: Tue May 02, 2006 5:26 pm Post subject: (No 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. |
|
|
|
|
![](images/spacer.gif) |
Junkhead
|
Posted: Tue May 02, 2006 6:11 pm Post subject: (No subject) |
|
|
Yeah, arrays are a must to know if youre doing serious programming in Turing. |
|
|
|
|
![](images/spacer.gif) |
MysticVegeta
![](http://www.geocities.com/ohsoinsane/my_avatar.JPG)
|
Posted: Tue May 02, 2006 6:12 pm Post subject: (No subject) |
|
|
in any language actually |
|
|
|
|
![](images/spacer.gif) |
Junkhead
|
Posted: Tue May 02, 2006 6:15 pm Post subject: (No subject) |
|
|
Actually, that's very true. |
|
|
|
|
![](images/spacer.gif) |
wtd
|
Posted: Tue May 02, 2006 6:46 pm Post subject: (No subject) |
|
|
Well, in a fair number of them you can get away with mostly using lists and tuples. |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Tue May 02, 2006 8:45 pm Post subject: (No 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 |
|
|
|
|
![](images/spacer.gif) |
|