Hi @sanketd27011989
You can do like this:
first store result of this expression in a variable using: dat-sly-test.[variable name]
E.g: <sly data-sly-test.variableName = "${'cd' in currentPage.path}"></sly>
The result of expression will be either - true or false.
Hence you can use this var...