match VEX function

This function returns 1 if the subject matches the pattern specified, or 0 if the subject doesn’t match.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

  1. int match(string pattern, string subject)

This function returns 1 if the subject matches the pattern specified, or 0 if the subject doesn’t match. The standard Houdini pattern matching is used. Multiple patterns may be separated by spaces or commas. The special characters for matching are:

Examples: