I’m trying to create a function in oracle. It seems it is not possible to do something like this:
IF (VAR1 IS NULL OR LENGTH(TRIM(VAR2))) = 0 THEN
-- do something;
END IF;
How can I use ‘OR’ clause inside if. I want to ask for two possible conditions in the same line using if.
It is possible if you place your parenthesis correctly: