37
votes

Maybe an outdated question but I cant get it to work.

I have an *ngIF statement and i want to use multiple conditions like this:

*ngIf="expression && prototype?.valueType === 'Integer' && 'String'"

How do I set this *ngIf with multiple conditions?

1

1 Answers

55
votes

This usually works fine.

The expression

*ngIf="expression && prototype?.valueType === 'Integer' && 'String'"

seems a bit off.

Perhaps you want something like

*ngIf="expression && (prototype?.valueType === 'Integer' || prototype?.valueType === 'String'")