Sightly Issue : data-sly-test: redundant constant value comparison

Avatar

Avatar

Sumit1191

Avatar

Sumit1191

Sumit1191

05-01-2021

-

sightly

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

BrianKasingli

MVP

Avatar

BrianKasingli

MVP

BrianKasingli
MVP

06-01-2021

 

@Sumit1191 

You can store / not-store the returned value, something like this:

 

// example 1 : store the returned value, and use it
<sly data-sly-test.skuNumber="${mymodel.skuNumber}">
     <p>SKU Number: ${skuNumber}</p>
</sly>

// example 1 : not-store the returned value, rather wrapping block of code
<sly data-sly-test="${wcmmode.edit}">
     <p>Welcome the the edit mode</p>
</sly>

 

 

Answers (1)

Answers (1)

Avatar

Avatar

KiranVedantam1992

Avatar

KiranVedantam1992

KiranVedantam1992

06-01-2021

Hi @Sumit1191, Can you please elaborate on your query.

 

Thanks,

Kiran Vedantam.