In Array

Developer

Simon Andersohn

3rd Party (Free)

4 downloads (last 90 days)

Download v1.3

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.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Searches for a value within given pipe separated values. The delimiter can be specified to search within comma separated value or whatever you specify.

To use this plugin, enter the value to search for in the value parameter and pipe delimited values in the array parameter. Comma separated values (or any other separated values) can be searched by specifying the delimiter with the “delimiter” parameter.

{exp:in_array value=“3” array=“2|4|5|20”}

{exp:in_array value=“Cow” array=“The|Cow|Jumped|Over|The|Moon”}

Typical use:

`{if ‘{exp:in_array value=“2” array=“1|2|3”}’}
  We found your value
{/if}`

{if ‘{exp:in_array not=“4|5” array=“1|2|3”}’}
  We did not find your value
{/if}

Tag Pair:

{exp:in_array:pair value=“2” array=“1|2|3”}
  {if no_results}Value not found{/if}
  We found your value
{/exp:in_array:pair}

Alternative no_results: Note that this only works with no “if” conditions inside it.

{exp:in_array:pair value=“2” array=“1|2|3”}
  {if in_array:no_results}Value not found{/if}
  We found your value
{/exp:in_array:pair}

Available parameters:

value=“X” : The value to find in the array
not=“X” : The value not to find in the array
array=“1|2|3|4” : the values in the array to search
delimiter=”|” : change the default pipe delimiter e.g. delimiter=”,”
case_insensitive=“y” : make the search case insensitive

Download In Array

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.3 Feb 12, 2016

In Array Links

This entry was created February 15, 2016, 10:53 am.
This entry was last updated February 15, 2016, 2:47 pm.

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.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!