What is the correct way to do a simple logical comparison?
Specifically:
if ( $avp(info) < 3 ) {
…This throws an error during runtime
if ( $avp(info) < "3" ) {
…This works but only if $avp(info) is integer less than 9
The old format was tried in both cases eg; $avp(i:info) but the same result.
Can someone post a way to do this comparison?
Try this
if($(avp(info){s.int})<3) {
That works, thanks.
What is the correct way to do a simple logical comparison?
Specifically:
…This throws an error during runtime
…This works but only if $avp(info) is integer less than 9
The old format was tried in both cases eg; $avp(i:info) but the same result.
Can someone post a way to do this comparison?
Try this
That works, thanks.