1. Test One was to deploy the site and remove all modules but the 2 test Modules
2. Issue is resolved
3. I did not even need to edit the code even if a not technically correct syntax is used.
4. I do however notice and need to mention that you use mixed syntax quite often.
As a rule of thumbs, use the GUI. It will produce {!{ where needed ad [ where needed.
I tried to narrow down deleting which element solves the issue.
None. Simply it can not be solved by deleting each module, but it's solved if you delete all modules at once.
I see a massively customized install, which we cannot call an install where things break in a replicable, but an exceptional customization.
There are several (!) PHP errors on site, amongst others:
( ! ) Warning: Use of undefined constant FLYWHEEL_PLUGIN_DIR - assumed 'FLYWHEEL_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in /Applications/MAMP/htdocs/duplicator/.fw-config.php on line 11
( ! ) Deprecated: Function create_function() is deprecated in .../plugins/fancy-facebook-comments/includes/class-fancy-facebook-comments.php on line 196
( ! ) Deprecated: Function create_function() is deprecated in .../flywheel-config/plugins/flywheel/disable-wordpress-core-update/disable-core-update.php on line 24
( ! ) Warning: Cannot modify header information - headers already sent by (output started at .../flywheel-config/plugins/flywheel/disable-wordpress-core-update/disable-core-update.php:25) in .../wp-admin/includes/misc.php on line 1126
I then stripped the whole site down and still cannot use Conditionals at all in the code module.
I seriously doubt my own ability to appreciate reality.
I - just as you - can swear it worked on the first attempt, didn't anymore on few others, did again later and now it's totally broken in the code module.
At least it's broken and stops playing with me/us
I will escalate this to the DEV next Monday after I re-iterate thru this once again to at least find some replicable steps locally on a fresh install.
For now, please use the Text Module.
BTW:
I am somehow positive I had reported a similar one in past where the issue is that the builders do not threat all modules the same way and we could not solve the issue on our end, however, we'll try!
Thanks a lot for the duplicate, which enables me to show proof of issue to the DEV.