How do I check to see if an environment variable exists?
J. Landman Gay
jacque at hyperactivesw.com
Sat Nov 24 11:35:28 EST 2018
> How would I test to see if the $1 variable exists?
I don't check for existence, I only check whether it's empty.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 24, 2018 8:04:50 AM bob--- via use-livecode
<use-livecode at lists.runrev.com> wrote:
> $# tells you how many parameters there are for a script. Perhaps if $# > 0
> then... instead might work (I’ve not tried that). You might find using
> environment() potentially helps as well. The Dictionary has the details. If
> neither of those options work let me know. I have another way you could
> tackle the issue.
>
> - Bob Hall
>
>> On Nov 23, 2018, at 5:27 PM, Stephen MacLean via use-livecode
>> <use-livecode at lists.runrev.com> wrote:
>>
>> However, the exists($1) never returns true, even when it should. Which
>> leads to to believe that’s not what I want to use.
>>
>> How would I test to see if the $1 variable exists?
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list