If Statement - Form Selection - HubL

I was wondering if you could assist.

I have 2 forms, a HubDB and a dynamically generating page. I have a column in HubDB (multi-select) set up so I can select which form I want to appear on the page (default/form2). I want the dynamic page to pull in whichever form I choose. I have 2 custom modules, each with a different form in set up.

I thought an IF statement might work, but it doesn’t. To me, the theory behind the code should work, but it doesn’t.

{% if dynamic_page_hubdb_row.form_selection.name == ‘default’ %}

{% module “module_156528039003630” path=“/_2019/Homepage-May-2019/modules/LP-Form-Section-May-2019 copy”, label=“Vacancy-Form1-August-2019”, no_wrapper=True %}

{% else %}

{% module “module_156536372007990” path=“/_2019/Homepage-May-2019/modules/Vacancy-Form1-August-2019 copy”, label=“Vacancy-Form2-August-2019”, no_wrapper=True %}

{% endif %}

I have used {{ dynamic_page_hubdb_row.form_selection|pprint }} to find out if I need to use Name, ID or Value to define the operator, but neither of them works. Am I missing something really obvious?

Only the else portion of the IF statement ever shows. I can’t get the name == ‘default’ section to work

I managed to solve this by switching how I approached what I needed it to do.

I changed the multiselector to a checkbox and used that to switch out the modules.

{% if dynamic_page_hubdb_row.form_cover_letter == ‘0’ %}