cfMatch ( value_to_test; match_Value; match_operator )
Rate this function: Average rating: 4.0 (6 votes) Discuss this Custom Function
Bruce Robertson, Concise Design
http://concise-design.com
Test input to see whether it equals, contains, less than etc for match_value, returns boolean result
Sample Input:
cfMatch( contacts::firstname; "B"; "bw")
cfMatch( order::total, 1000; ">") |
|
Sample Output:
1 for first name "Bruce"
0 for order total 876 |
|
Description:
cfMatch ( value_to_test; match_Value; match_operator )
searches value_to_test for matchValue using operator
returns 1 if math
returns 0 if no match
operators are:
>> contains
!>> does not contain
= equals
eq equals
== exact equal
!= not equal
≠ not equal
<> not equal
> greater than
>= greater than or equal
< less than
<= less than or equal
bw begins with
!bw does not begin with
ew ends with
!ew does not end with
Bruce Robertson - Concise Design
Last updated 3/7/2010
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
indonesian_date(date) |
| |
(Mon, Feb 06, 7:14pm) |
| 2. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 3. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 4. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 5. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 6. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 7. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
| 8. |
CenterWindow in Window vert horiz (demension) |
| |
(Fri, Jan 06, 12:25pm) |
 |
|