The syntax is beautiful. If it does not work for you, it may be due to the sorting of the database.
If you have case-sensitive sorting, then it will NOT match if there is no match. for example, if @name is "Something john said", then the LIKE search for "John" will not find a match, so it will switch to ELSE.
source
share