plpgsql stop procudure is condition is true code example
Example: plpgsql if statement
if condition then
statements;
else
alternative-statements;
END if;
if condition then
statements;
else
alternative-statements;
END if;