I want to use an if statement determine if a number is a integer or decimal. Is that possible? example
if(field1/field2 = "whole number","true","false")
Splunk has both isint
and isnum
functions:
http://docs.splunk.com/Documentation/Splunk/6.6.1/SearchReference/InformationalFunctions
Splunk has both isint
and isnum
functions:
http://docs.splunk.com/Documentation/Splunk/6.6.1/SearchReference/InformationalFunctions
Isint() works for what i need. Thanks
Perhaps a little modulus action:
if(field1%field2==0, "true", "false")