Page 1 of 2
Assigning multiple variable with one command
Posted: Wed Aug 22, 2018 2:43 am
by rbytes
Mr. K, a while back you showed me an example of assigning multiple variables to the same value in one command line. I have forgotten. What is the format for that?
I tried:
A = B = C = 0
A, B, C = 0
But they don't work, they just give syntax errors. But I recall it was something like that,
Re: Assigning multiple variable with one command
Posted: Wed Aug 22, 2018 3:00 am
by Mr. Kibernetik
In smart BASIC there are no such commands.
They are in SPL.
Re: Assigning multiple variable with one command
Posted: Wed Aug 22, 2018 9:33 am
by Dutchman
It could be done with READ
Re: Assigning multiple variable with one command
Posted: Thu Aug 23, 2018 7:44 pm
by rbytes
Thanks. I do use READ. That was just a false memory of SB from the time I was learning SPL. Multiple variable setting was a handy little SPL feature, but it seemed I was the only one learning SPL, so I am back with Smart Basic.
Re: Assigning multiple variable with one command
Posted: Fri Aug 24, 2018 1:51 am
by Mr. Kibernetik
rbytes wrote: ↑Thu Aug 23, 2018 7:44 pm
but it seemed I was the only one learning SPL
There are more than 100 users of SPL right now...
Re: Assigning multiple variable with one command
Posted: Tue Sep 11, 2018 9:20 pm
by rbytes
That is a lot of users. But I didn't see anyone but me posting SPL programs on the Forum.
Re: Assigning multiple variable with one command
Posted: Wed Sep 12, 2018 8:15 am
by Dutchman
Perhaps because SPL is not as simple as the name indicates
Re: Assigning multiple variable with one command
Posted: Wed Sep 12, 2018 2:38 pm
by Mr. Kibernetik
Dutchman wrote: ↑Wed Sep 12, 2018 8:15 am
Perhaps because SPL is not as simple as the name indicates
SPL is "Smart Programmimg Language"
Re: Assigning multiple variable with one command
Posted: Thu Sep 13, 2018 8:21 am
by Dutchman
OK. I doubted between "Simple" and "Shorthand"
Re: Assigning multiple variable with one command
Posted: Thu Sep 13, 2018 9:20 am
by Henko
There is a list with programming languages on internet. I counted about 700 of them. And SmartBasic and SPL are not even on that list.