You'll eventually need to run a block of PHP code that executes if your "if" statement is false. In this event, you will use an "else"| clause.
is there a syntax update this one seem to work for me
This is shorthand syntax and is still valid PHP code. I recommend the bracketed syntax though as it has defined start and end points for each block of code, which makes the code more readable and easier to understand. I’d use shorthand syntax very sparingly, if at all.
Thanks for sharing @Mark