Will the following two pieces of code work the same way?
#{if CreateOrUpdateWebsite}True#{/if}
and
#{if CreateOrUpdateWebsite}True#{/if}
#{unless CreateOrUpdateWebsite}False#{/unless}
Will the following two pieces of code work the same way?
#{if CreateOrUpdateWebsite}True#{/if}
and
#{if CreateOrUpdateWebsite}True#{/if}
#{unless CreateOrUpdateWebsite}False#{/unless}
Hi Michael,
No they wont:
#{if CreateOrUpdateWebsite}True#{/if}
With this expression, if the variable CreateOrUpdateWebsite
holds any value at all, the value of the field will be True
. If the variable doesn’t exist or doesn’t hold a value, the field will be left with no value.
#{if CreateOrUpdateWebsite}True#{/if}
#{unless CreateOrUpdateWebsite}False#{/unless}
With this other expression, if the variable CreateOrUpdateWebsite
holds any value at all, the value of the field will be True
. If CreateOrUpdateWebsite
doesn’t exist or doesn’t hold any value, the field will have the value False
.
Regards,
Dalmiro