JS displaying text

DKaplan
02 Aug 2016, 14:24

I want to be able to do something like this:

if(squiffy.get("variableThatIsTrue")){
    //Display Text
}

And in the "Display text" part I want to display some text.


Leonardo Boselli
02 Aug 2016, 15:21
if(squiffy.get('variableThatIsTrue')){
    squiffy.ui.write('text to be displayed');
}

DKaplan
02 Aug 2016, 15:25

Thank you.