summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/format-specifiers.txt21
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)