I want to check whether the content of a variable is an odd number. But I need an integer for it.
$ip_array = split($ipaddress, '.')
$odd_ip = $ip_array[3] % 2
if $odd_ip == 1 {
notice("is odd")
}
Is there an easy way to convert a string to integer?