mustache-sharp icon indicating copy to clipboard operation
mustache-sharp copied to clipboard

If ... Or ...

Open c5racing opened this issue 8 years ago • 2 comments

Is there any capability to do an If... Or... such as:

Hello {{#if {{Man}} || {{Boy}}Mr.{{#else}}Mrs.{{/if}} Smith!

c5racing avatar Sep 27 '16 19:09 c5racing

If there isn't a lot of text in a branch, duplicate the text in an #elseif. Else, create a IsMale property and use that. That's the best you can do right now.

On Sep 27, 2016 3:01 PM, "c5racing" [email protected] wrote:

Is there any capability to do an If... Or... such as:

Hello {{#if {{Man}} || {{Boy}}Mr.{{#else}}Mrs.{{/if}} Smith!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jehugaleahsa/mustache-sharp/issues/69, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTgPuGevdAzlw8P_qY_uvE_SmK7vo0dks5quWgEgaJpZM4KICOB .

jehugaleahsa avatar Sep 27 '16 19:09 jehugaleahsa

That's what I assumed. i have substantial duplicated text The IsMan and IsBoy was just an example so the IsMale suggestion won't work in my case.

Thanks!

c5racing avatar Sep 27 '16 19:09 c5racing