An if statement in size-md/size-sm.. etc


I am wondering if there is a way that I can add an inline if statement inside of size-md/size-sm… etc. on 's?

Maybe something like:

<ion-col size-md=" randomArr.length > 0 ? 12 : 6"></ion-col>


you can. I guess you are using Angular? So either you wrap what the statement into {{ }} or use [sizeMd]="..."