How to say if something equals to a string in Sightly?

In Sightly, I want to have if statement as in below

if x == "Australia" then execute the html below

I am looking for some tutorial on how to do this or some example. This may not be worth asking here. However, please, may I have an example like that? I am stuck

-------------Problems Reply------------

I think you could do something like this:

<div data-sly-test="${x == 'Australia'}">
HTML about Australia

Here are some tutorials as well:

Category:sightly Views:1 Time:2018-07-10
Tags: sightly

Related post

Copyright (C), All Rights Reserved.

processed in 0.142 (s). 11 q(s)