diff options
author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-02-11 13:42:21 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-02-11 13:42:21 -0500 |
commit | 1cbbefe2c89da103d780b001c56e3d8aaeaa1c19 (patch) | |
tree | 27916c44de111e8b4416444125f50eb01e311360 /doc | |
parent | 90c203ee7262eadc661fa8a8e32e6c07d06a6114 (diff) | |
download | slapi-nis-1cbbefe2c89da103d780b001c56e3d8aaeaa1c19.tar.gz slapi-nis-1cbbefe2c89da103d780b001c56e3d8aaeaa1c19.tar.xz slapi-nis-1cbbefe2c89da103d780b001c56e3d8aaeaa1c19.zip |
- take a stab at documenting %ifeq()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/format-specifiers.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/format-specifiers.txt b/doc/format-specifiers.txt index c20471a..7ee6cc7 100644 --- a/doc/format-specifiers.txt +++ b/doc/format-specifiers.txt @@ -400,3 +400,24 @@ Here's an example entry: And here's how an example expression evaluates for ''cn=group'': %link("%{member}","?","/","%{membername}","?") -> (uid=bob/jim,uid=pete/?) + +=== ifeq === + + ifeq(''ATTRIBUTE'',''EXPRESSION'',''MATCH-EXPRESSION'',''NONMATCH-EXPRESSION'') + +Evaluates ''EXPRESSION'', and if the entry's ''ATTRIBUTE'' attribute +matches the value provided by the expression, evaluates and returns +''MATCH-EXPRESSION'', otherwise ''NONMATCH-EXPRESSION'' will be +evaluated and returned. + +Here's an example entry: + + dn: cn=group + cn: group + membername: jim + member: uid=bob + member: uid=pete + +And here's how an example expression evaluates for ''cn=group'': + + %ifeq("member","jim","","%{membername}") -> (jim) |