Problems with zero

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Problems with zero

Post by Jerry Thomas » Tue Nov 09, 2010 10:30 pm

I am setting a variable and then later checking it.
(The code kept getting 'autoformated' so I switched the wrote out the less than symbol)

Let>Delay=0

If>Delay (lessthan) .01
//This does not work
Endif>

If>Delay (lessthan) 0.01
//This works
Endif>


Is this correct?
Do I have to have the leading 0?
Thanks,
Jerry

[email protected]

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 10, 2010 10:48 am

Yes it needs the leading zero.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts