Hi I’m new to CS and all this, so sorry if I’m totally missing something. I created my first component yesterday (A card element for WooCommerce products) and there is a part of the card that I want to add or remove based on a parameter in the component. I have searched the web, this form, and read up everything i could find on the docs but I can’t get it to work.
I have set up the parameter on the exported component element like so: (and it shows up in the Params tab)
{
"supported-games" :{
"type":"toggle",
"label":"Supported Games"
}
}
Now I want to use the value of that toggle (which I assume is true or false) as one part of a condition to show a child element of the component. I have looked all through the list of available condition choices and nothing hints at being for checking a parameter value, or dynamic content or anything like that. I did try the string option, and setting it up like {{dc:p.supported-games}} is not False but that doesn’t work, probably becase a toggle is a bool not a string.
