Compare numeric strings with leading zeros

Ralph DiMola rdimolad at
Thu Sep 3 00:49:49 EDT 2015

I would have thought 5=005 would evaluate as true and "5"="005" would evaluate as false. 

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at
Office: 518-636-3998 ex:11
Cell: 518-636-3998

<div>-------- Original message --------</div><div>From: "J. Landman Gay" <jacque at> </div><div>Date:09/03/2015  00:42  (GMT-05:00) </div><div>To: How to use LiveCode <use-livecode at> </div><div>Subject: Re: Compare numeric strings with leading zeros </div><div>
</div>On 9/2/2015 11:16 PM, Ralph DiMola wrote:
> I was hoping that there was a way to coerce "005" into a string of 3 chars.

Adding specific quotes around it does that.

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list