Highlighted

Two True Values?

Participant ,
Sep 15, 2017

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.

TOPICS
Mucow development

Views

365

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Two True Values?

Participant ,
Sep 15, 2017

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.

TOPICS
Mucow development

Views

366

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 15, 2017 0
Guide ,
Sep 16, 2017

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 16, 2017 0
Lesan360 LATEST
Participant ,
Sep 17, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 17, 2017 0