sendgrid/email-templates

conditional statement issue

HansFilip96 opened this issue · 1 comments

Actual Behaviour

email not beeing sent, no complaining from code editor that i made a misstake.

Expected Behaviour
i want to check what value my ReminderCount has but cant figure it out and i get no errors. took the inspiration from your page "Conditional check with equals": LINK
trying to do something like this.
{{#equals ReminderCount 1 1}}
input some text
{{else}}{{#equals ReminderCount 2 2}}
input some text
{{else}}{{#equals ReminderCount 3 3}}
input some text
{{else}}{{#equals ReminderCount 4 4}}
jinput some text
{{else}}{{#equals ReminderCount 5 5}}
input some text
{{/equals}}{{/equals}}{{/equals}}{{/equals}}{{/equals}}

Steps to reproduce it

Add steps to reproduce bugs or add information on the place where the feature should be implemented. Add links to a sample deployment or code.

LogCat for the issue

Provide logs for the crash here

Screenshots of the issue

Where-ever possible attach a screenshot of the issue.

Would you like to work on the issue?

Please let us know if you can work on it or the issue should be assigned to someone else.

Actual Behaviour

email not beeing sent, no complaining from code editor that i made a misstake.

Expected Behaviour i want to check what value my ReminderCount has but cant figure it out and i get no errors. took the inspiration from your page "Conditional check with equals": LINK trying to do something like this. {{#equals ReminderCount 1 1}} input some text {{else}}{{#equals ReminderCount 2 2}} input some text {{else}}{{#equals ReminderCount 3 3}} input some text {{else}}{{#equals ReminderCount 4 4}} jinput some text {{else}}{{#equals ReminderCount 5 5}} input some text {{/equals}}{{/equals}}{{/equals}}{{/equals}}{{/equals}}

Steps to reproduce it

Add steps to reproduce bugs or add information on the place where the feature should be implemented. Add links to a sample deployment or code.

LogCat for the issue

Provide logs for the crash here

Screenshots of the issue

Where-ever possible attach a screenshot of the issue.

Would you like to work on the issue?

Please let us know if you can work on it or the issue should be assigned to someone else.

@HansFilip96 You can print the value of the ReminderCount variable before your if conditions
eg: ReminderCount is {{ReminderCount}}
{{#equals ReminderCount 11}}
input some text
{{/equals}}