How to compare two strings? (Language Help)

by francisco, Friday, June 24, 2016, 15:08 (368 days ago)

Hello,

I want to compare two times and act accordingly.

I type:

a$="1639" # (16:39)
b$="1047" # (10:47)
if a$>b$ then
print "a is greater than b"
else
print "a is not greater than b"
end if
end

Result: a is not greater than b

Is it not possible to compare strings? Am I wrong at some point?

Thanks in advance

How to compare two strings?

by Jim ⌂ @, Russell, KY, Monday, August 08, 2016, 14:14 (323 days ago) @ francisco

Francisco,

In the current version 1.99.99.55 it behaves the way it is supposed to. What version were you having this issue with?

Jim

How to compare two strings?

by francisco, Monday, December 19, 2016, 20:03 (190 days ago) @ Jim

version 0.9.6.69 (2012-02-26)

thanks

RSS Feed of thread
powered by my little forum