- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Difference in contain Function
Can anybody please help me understand the below 2 functions?
1) contains(:column == "HP") versus
2) contains(:column, "HP")
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Difference in contain Function
Created:
Dec 16, 2021 02:04 PM
| Last Modified: Dec 16, 2021 11:06 AM
(1136 views)
| Posted in reply to message from penalah 12-16-2021
The first function call exhibits incorrect syntax for the Contains() function and makes no sense. The Contains() function takes two arguments that represent a string, expression, matrix, list, or associative array and the second argument is the same type. The second function call uses correct syntax and will return the location of the first occurrence of the second argument (e.g., "HP") in the variable column, assuming it stores a character string, or 0 if it is not found.
Select Help > Scripting Index > Functions > Contains in JMP to see the syntax and explanation.
See the Help entry for this function here.