I need help in squeak dividing strings. I have t1 = 'something' but I don't know how to add more strings.
* My 500 post!
Offline
I don't get what you mean, "add more strings."
Offline
Dividing strings!? Add more strings!? t1 = something!?
Offline
I mean, I tried to put t1 = 'something', 'something else' ifTrue:, but it didn't work. I need a way to write t1 = string or string or string ifTrue:
Offline
I think this will work:
((t1 = 'string here') | (t1 = 'string here') | (t1 = 'string here)) ifTrue:[commands here].
I have a habit of putting in unnecessary parentheses just to be safe, so if when you save some of them go away, it's fine.
By the way, when you did t1 = 'something', 'something else', you joined the strings. In other words, you were testing to see if t1 = 'somethingsomething else'.
Last edited by Greenatic (2011-08-22 12:17:36)

Offline