To implement IF/ELSE conditional statement within the IONIC HTML code not in the Javascript code, this is how you do it.

for example

const showBlue:boolean = true;
return (
  {
    showBlue ? ( 
      <message>Blue</message>
    ) : (
      <message>Red</message>
    )
  }
)

In this simple example, we are using a ternary conditional statement.

The varilable showBlue has a value of true, therefore, the Blue message will be shown in the IONIC REACT code.