Pvl Check If

Developer

Pv Ledoux

3rd Party (Free)

BSD 3-Clause License

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Check if a value is in a list (default separator: |) or if it isn't. You can now also check if a value is contains within an other (with the contains parameter, see examples below). This plugin can also check if a module or extension is installed.

Pvl CheckIf

Pvl Checkif is an ExpresionEngine plugin that checks if a value is in a list (default separator: |) or if it isn’t.

This plugin can also check if a module or extension is installed.

Parameters:

     
  • value: required
  •  
  • is_in: required if is_not_in is not set
  •  
  • is_not_in: required if is_in is not set
  •  
  • contains: required if is_in or is_not_in are not set
  •  
  • separator: optional (default: |) you can change the list separator here.

value, is_in, is_not_in, *contains* parameters can be global variables, entry field value, etc.

Examples:


IS IN condition:

{exp:pvl_checkif value=“123” is_in=“1|12|123”}
<p>Yes Sir!</p>
{else}
<p>No Sir!</p>
{/exp:pvl_checkif}

IS NOT IN condition:

{exp:pvl_checkif value=“123” is_not_in=“1|12”}
<p>Yes Sir!</p>
{else}
<p>No Sir!</p>
{/exp:pvl_checkif}

CONTAINS condition:

{exp:pvl_checkif value=“123” contains=“12”}
<p>Yes Sir!</p>
{else}
<p>No Sir!</p>
{/exp:pvl_checkif}

Check if a module is installed:

{exp:pvl_checkif:module is_installed=“playa”}
  <p>Playa is installed</p>
{/exp:pvl_checkif:module}

Check if a extension is installed:

{exp:pvl_checkif:extension is_installed=“Mo_variables”}
  <p>Mo’ Variables is installed</p>
{/exp:pvl_checkif:extension}

Release logs

v0.6

     
  • check if module or extension is installed
  •  
  • coded refactored
  •  
  • copyright updated

v0.5

  • Improved preformance by adding static cache when parsing global variables


v0.4

     
  • Re-parse global variables stored in config files (see bug at http://expressionengine.com/bug_tracker/bug/17801)
  • Giga error when the condition is false


v0.3

     
  • Added “contains” parameter
  • Added {else}

Pvl Check If Links

This entry was created August 30, 2011, 10:06 am.
This entry was last updated April 11, 2014, 5:16 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

3 Reviews:

Akwadnet 05.06.12

Akwadnet
Rating - {addon_rating_average}

this Add-one is Awesome…

pvledoux 03.27.12

Rating - {addon_rating_average}

@E Alton: now it does!

E Alton 10.24.11

E Alton
Rating - {addon_rating_average}

Was looking for an alternative to Erik Regan’s “If Contains” and this is almost it. Would be great if it worked that way instead of only if the match is exact.