Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Flustered with [if]



Hey,
 
 
The biggest single problem i've had with minivend has been getting the various IF's to work properly. (i've been at this about a year now)
 
The documentation makes very little sense to me..can someone explain to me the semnatics of the IF statement?

It seems to me if I have a scratch variable (call it "mv_var") set to "test" and do:
 
[if scratch mv_var eq "test"]
that should work..
or at leaset
 
[if type=scratch term="mv_var" op="eq" compare="test"] should..but neither do..or sporadically at best. The biggest problems are in string comparisons. Numeric comparisons seem to always work flawlessly (IE setting the same variable to 1 and doing : [if scratch mv_var == 1] will return the right result). I find myself resorting down to perl for this more and more....
 
Sorry, i'm just a bit frusturated after fighting this yet again for far to long tonite.
 
Nick

Search for: Match: Format: Sort by: