Hi guys,
I want to check a value is >= (greater than or equals to). Below is an example.
I get errors If I do this. The only operator I seem to be able to get to qork is == ( is equals to).
I read the Velocity documentation that says I can do this.
Can someone help please?
BR.
Stuart.
#set ($vasSize = "[entry.asSize]") { #if ( $vasSize >= 0 ) "update": { "issuelinks": [ { "add": { "type": { "name":"Relates", "inward":"relates to", "outward":"relates to" }, "outwardIssue": { "key":"[entry.idea1]" } } } ] } #end }
Hi
Well, if you set the variable as text...
#set ($vasSize = "[entry.asSize]")
It is a bit too much to expect it act as a numeric in >= conditions
Alex
Hi Alex,
sorry are you saying that if the variable is text rather than numeric then >= or <= works?
BR.
Stuart.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please refer to Velocity templating documentation for more details
This defines a text variable
#set ($vasSize = "[entry.asSize]")
But this defines a numeric variable
#set ($vasSize = [entry.asSize])
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex, thankyou for your patience and your support. Silly mistake. Now everything is working correctly. Regards. Stuart.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.