What Phyronnaz put in his post is the exact syntax you want in your custom code block. Hashtags and all. You don’t want to create a regular 'ole branch, you want to define a switch, hence the hashtags and endif.
On top of that, keep in mind that it only works on ue5-main. If you’re using the launcher build (ue5-ea) it won’t work.