Differentiate between zero (float) and null (or 0 int)

Discuss Lemur and share techniques.
Post Reply
dBlicious
Newbie
Posts: 25
Joined: 12 Jan 2013 06:49

Differentiate between zero (float) and null (or 0 int)

Post by dBlicious »

Is there any way to tell the difference between zero (float) and null, or at least 0 (int) and 0.0 (float)? I want to determine if an expression exists for an object. If I do a getexpression() for an expression that doesn't exist (say x in a container), it returns 0 (int), if it does exist then I get a float. If that float is 0.0, how can I tell if the expression is null or just has a value of 0.0? In lemur, null == 0 == 0.0.

Thanks,
A
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Differentiate between zero (float) and null (or 0 int)

Post by Macciza »

Hmm
Interesting, must admit that nothing pops of the top of my head for this one . . .
Will have to give it a bit of thought, I think this may have come up once before but not resolved . . .
Have to get back to you . . .
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Post Reply