Why does #isValid(\"integer\",\"1,5\")# output YES? I expected it to output NO like #isValid(\"integer\",\"1.5\")# does.
#isValid(\"integer\",\"1,5\")#
#isValid(\"integer\",\"1.5\")#
I\'m going to vali
If you want to make absolutely sure you have an Integer, you could use Java Integer methods.
createObject("java","java.lang.Integer").parseInt("1,5");
The parseInt() method throws when it is given anything that cannot be interpreted as an Integer. This includes "1,5".
"1,5"