[Newbies] ifTrue ifFalse help
matthias.berth at googlemail.com
Wed Apr 27 06:12:07 UTC 2011
bool = $a
to get what you expect. A String consists of Characters (Character is
a separate class).
You could also do
to see what's going on :)
On Wed, Apr 27, 2011 at 08:05, calcrisk33 <rick.m.wallace at gmail.com> wrote:
> | binnum index bool|
> binnum := 'abc'.
> index := 1.
> bool:=(binnum at: index).
> (bool = 'a')
> ifTrue: [Transcript show: 'ifTrue'; cr]
> ifFalse: [Transcript show: 'ifFalse'; cr].
> Transcript show: bool; cr.
> Why does this result in:
> and not
> I've tried both = and == with no success.
> Any help is much appreciated!
> View this message in context: http://forum.world.st/ifTrue-ifFalse-help-tp3477318p3477318.html
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners