On 01 Jul 2004 23:33:14 +1000, Scott Smedley wrote: > > > > ie. This is illegal syntax, but shows what I'd like to do. > > > > > > Test (Version >= 2.5.12) Echo yup > > > > > > Anyone know how I could do something like that? > > > > Use $[version.num] in a piperead. > > You will need to parse the result into individual numbers in order > > to do arithmetic compares. > > Hehe! That's what I figured - I was hoping there was a cleaner way. :) > > I wonder if we should create a new version variable like Perl does > to aid in these sorts of comparisons? > > ie. 2.005012 > > Hmmm, maybe not. I'm not sure anyone else would find it useful.
No, we should just implement Version ">=", ">", "==", "<", "<=" syntax. It is in my todo list somewhere in the middle. Feel free to implement it. Regards, Mikhael. -- Visit the official FVWM web page at <URL: http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
