I have created several custom fields under Customers > Custom Fields.
I would like to use these fields on the account page to output conditional information.
For example:
{{% if account_custom_field[1] == X %}}
DO THIS
{{% elseif account_custom_field[1] == Y %}}
DO THIS
{{% endif %}}
Any idea how I can achieve this? I have spent hours trying and failing to add the relevant code to controller/account.php with no luck

I am using Opencart 3.0.1
Hope this makes sense, please let me know if you need any further clarification. Any help would be greatly appreciated!