[hide_if] – Hide If BBCode

[hide_if condition="a == b" delay="400"]
CONTENT
[/hide_if]


Attributes:

AttributeExamplesDescription
condition*condition="a == b"
condition="a != b"
condition="a >= b"
The condition to check.
Required.
delaydelay="0"
delay="400"
delay="800"
Animation delay in milliseconds. Lower values make the animation faster
Default: 400.
Optional.
CONTENT*[show_if condition="a == b"][/show_if]The content inside the BBCode will be dynamically shown or hidden. Can be a single field, HTML even multiples fields.
Required.

Conditions:

AttributeExamplesDescription
CONDITION*[show_if condition="a == b"]
Show if a is equal to b
[/show_if]

[hide_if condition="a == b"]
Hide if a is equal to b
[/hide_if]
The condition to check.
Required.
Logical Operators[show_if condition="a == 1 AND b == 2"]
Show if a is 1 AND b is 2
[/show_if]

[hide_if condition="a == 1 OR b == 2"]
Hide if a is 1 OR b is 2
[/hide_if]

[show_if condition="a == 1 AND b == 2 AND c == 3 OR d == 4"]
Show if all conditions are meet
[/show_if]
Logical operators can combine multiples conditions. AND operator forces to meet both conditions while OR operator accepts to pass only one of them.
Accepts: AND or OR.
Optional.
Comparison Operators*[show_if condition="a *= b"]
Show if a contains b
[/show_if]

[hide_if condition="a ^= b"]
Hide if a starts with b
[/hide_if]
Comparison operators defines how to compare the values in a condition.

a == b : Equal
a === b : Equal (in value and type)
a != b : Not equal
a !== b : Not equal (in value and type)
a > b : Greater than
a >= b : Greater than or equal to
a < b : Less than
a <= b : Less than or equal to
a <=> b : Less than, equal to or greater than
a *= b : Contains
a *== b : Contains (case sensitive)
a !*= b : Not contains
a !*== b : Not contains (case sensitive)
a ^= b : Starts with
a ^== b : Starts with (case sensitive)
a !^= b : Not starts with
a !^== b : Not starts with (case sensitive)
a $= b : Ends with
a $== b : Ends with (case sensitive)
a !$= b : Not ends with
a !$== b : Not ends with (case sensitive)

Required.

This BBCode also supports common HTML attributes.