24/7 Support: 800.608.6482

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

Return Values

Examples

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2023 Miva©, Miva Merchant©, MivaPay©, MivaCon©, Camp Miva ℠, Miva, Inc. All Rights Reserved.