More CELX newbie incomprehension
Posted: 27.07.2007, 18:40
Can someone please show me why this simple snippet does not work? I am probably handicapped by my meagre knowledge of other scripting languages, because i am totally unable to see where this breaks down; it _should_ look like this.
... As you can see, this should print the current date to screen if the date is later than july 15th, and print the july 15th date if it is not. But it won??t print anything at all...
Thanks for any input,
- rthorvald
Code: Select all
mydate = celestia:gettime()
if (mydate) > "2454296.5"
celestia:flash(mydate)
else
celestia:flash("2454296.5")
end
... As you can see, this should print the current date to screen if the date is later than july 15th, and print the july 15th date if it is not. But it won??t print anything at all...
Thanks for any input,
- rthorvald