Hey!
I've spent like an hour messing about with this, but can't seem to get what I want.. even though it seems soooo simple.. I've currently whats below.. but what I'm trying to achieve is, get a statement to return TRUE if..
the input is NOT an integer,
or the input is negative,
or the input is not set (it's coming from a form, if it's blank but still submitted I assume it's going to have a value of ""? i.e. meaning it is set, but just doesn't have a value..
if( $_POST['var'] < 0 || (!is_int($_POST['var']) && $_POST['var'] != 0) ) {
}
Please help 😕 It seems SO simple.. but I'm having trouble with it, lol