Copy link to clipboard
Copied
Can a bool parameter contain 2 trueval attributes?
If no, how can i use a bool to make one line of html a comment?
example:
If bool = true
<a href="#" class="fa fa-facebook"></a>
if bool = false
<!-- <a href="#" class="fa fa-facebook"></a> -->
I would be able to open the comment syntax, however i would need to know how i can close it, since it's after the code.
Copy link to clipboard
Copied
The answer to the first question is no. Boolean can only have two states, on or off (true or false); having two true states would make no sense.
If I’m understanding what you‘re asking in the second part, it would make more sense to have a larger block of code within the parameters where you would have more control over what happens within each condition.
David
Creative Muse
Copy link to clipboard
Copied
Right, i thought about using conditional content in the trueval but the issue with that is that it won't place the code in the right area.