LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
Andycal
- Posts: 144
- Joined: Mon Apr 10, 2006 3:04 pm
Post
by Andycal » Tue Feb 12, 2008 12:16 pm
I'm trying to do this:
Code: Select all
if fld "fldOutputPath" is empty
then
put fld "fldArticles" into oPuts
else
put fld "fldOutputPath" into oPuts
end if
But it just doesn't work. I'm guessing it's because I'm using 'empty' wrong. Can anyone help?
-
BvG
- VIP Livecode Opensource Backer

- Posts: 1239
- Joined: Sat Apr 08, 2006 1:10 pm
-
Contact:
Post
by BvG » Tue Feb 12, 2008 12:41 pm
i tried your code and it works fine here. make sure these fields actually exist on the current card.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
-
Klaus
- Posts: 14191
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Tue Feb 12, 2008 12:42 pm
???
Hm, try this syntax structure:
Code: Select all
...
if fld "fldOutputPath" is empty then
put fld "fldArticles" into oPuts
else
put fld "fldOutputPath" into oPuts
end if
...
Code: Select all
If this does not work then
fld "fldOutputPath" <> empty
end if
Best
Klaus
-
Andycal
- Posts: 144
- Joined: Mon Apr 10, 2006 3:04 pm
Post
by Andycal » Tue Feb 12, 2008 12:46 pm
I think my first one did actually work.
I've had a bunch of problems with the IDE today, had to close it down due to some funny behaviour, now working OK.
Very odd.
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Tue Feb 12, 2008 1:44 pm
Hi,
My Rev is trying to be a wiseguy...
:-)
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode