24/7 Support: 800.608.6482

Get Started

Developer Docs

keyword_in

MivaScript Builtin Function, Miva Merchant 9+

Tag / Description

keyword_in( keywords_array var, search_string )

<mvt:assign name="g.return_value" value="keyword_in( keywords_array var, search_string )" />

Performs a keyword_extract() on the string parameter, and determines if the value in the keywords parameter is contained in the keyword list, and returns a boolean 1 or 0 to signify that the keyword is or is not in the string. If the keywords parameter is an array of strings, checks each value in the array, and returns an array of booleans specifying whether the array element is or is not in the string.

Parameters

  • keywords_array var

  • search_string

Return Values

Examples

Miva believes that all online businesses should have access to a scalable ecommerce platform that can meet their unique business requirements. Miva offers PCI compliant ecommerce, hosting, and custom website design and development solutions. Miva customers have processed over $100 billion in online sales since 1997.

Copyright © 2016 Miva, Inc - All Rights Reserved   Privacy Policy | Store Policy

Links
Contact Us
Receive Tips & Updates

Copyright © 2016 Miva, Inc - All Rights Reserved

Back To The Top