How to use multiple conditions

33 views
Skip to first unread message

Don

unread,
Apr 29, 2013, 11:05:32 PM4/29/13
to f-sc...@googlegroups.com
I'm just having the darnedest time figuring out how to use multiple conditions in a statement. For

obj name = 'F-Script' AND obj count = 1 ifFalse:

[

...

]


I get 'error: an instance of __NSCFString does not respond to "AND"' and for

(obj name = 'F-Script') && (obj count = 1) ifFalse:

[

...

]


I get 'error: an instance of False does not respond to "&&"'.

What am I missing?

Jeff Biggus

unread,
Apr 30, 2013, 12:23:44 AM4/30/13
to f-sc...@googlegroups.com
On Apr 29, 2013, at 10:05 PM, Don <mrt...@gmail.com> wrote:

What am I missing?


The F-Script Guide. Sorry, couldn't resist. =]
Try:

(obj name = 'F-Script') & (obj count  = 1) ifFalse:[ … ]


jeff

Don

unread,
Apr 30, 2013, 1:02:00 AM4/30/13
to f-sc...@googlegroups.com
Doh! I passed right over that. BTW, Jeff, are you going to write any more about F-Script on your blog? The post on switching options was quite useful.

Jeff Biggus

unread,
May 1, 2013, 5:06:43 PM5/1/13
to f-sc...@googlegroups.com
On Apr 30, 2013, at 12:02 AM, Don <mrt...@gmail.com> wrote:

BTW, Jeff, are you going to write any more about F-Script on your blog? The post on switching options was quite useful.


I'll consider it. I've been pretty busy lately so haven't found any time to blog in a while. I'm glad those postings were interesting. I still consider F-Script a core tool which I use almost everyday.

F-Script is going through a funny time right now too. Perhaps worth blogging about, actually. Maybe Philippe can be roped into writing up his thoughts.

-Jeff
Reply all
Reply to author
Forward
0 new messages