I have a .jsx file, with:
<p_grid>
<RangeSpan>
Currently, there are {" "}
<b>{Math.round(house.records * 100) / 100} houses</b> found.
</RangeSpan>
</p_grid>
this works fine, but now I want to interrogate house.source and display different things, something like:
if ({house.source}=="X")
{
Currently, there are {" "} <b>{Math.round(house.records * 100) / 100} houses</b> found.
}
else
{
different calculation and text.
}
I can display house.source OK but cannot figure out how to do the if statement. Completely new to this so any help is appreciated (I tried using ternary operator but don't know how to combine it with {} and "" or even of it is OK to use in this context).