Hi @Marion2318
The code you have shown has many errors.
Please research the basics of the if/else statement and learn to debug these issues.
This is not an ACF issue so I can’t help you with this. Perhaps another developer on stack exchange will point out the issues with your code, but that is not what this support forum is for.
Thanks
E