diff options
author | ewt <devnull@localhost> | 1997-07-07 20:46:18 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1997-07-07 20:46:18 +0000 |
commit | 9f56b79acf30747a1102bffcd85b0a9a585ec9a9 (patch) | |
tree | 05c33892b38d6dcd0d4134f0fd18f91bcf5901a3 /docs | |
parent | f253cb1c13493c20654ee4eedb2103064c734417 (diff) | |
download | rpm-9f56b79acf30747a1102bffcd85b0a9a585ec9a9.tar.gz rpm-9f56b79acf30747a1102bffcd85b0a9a585ec9a9.tar.bz2 rpm-9f56b79acf30747a1102bffcd85b0a9a585ec9a9.zip |
Added termnary expression evaluation
CVS patchset: 1730
CVS date: 1997/07/07 20:46:18
Diffstat (limited to 'docs')
-rw-r--r-- | docs/queryformat | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/queryformat b/docs/queryformat index 3ad119b8b..621847a1c 100644 --- a/docs/queryformat +++ b/docs/queryformat @@ -121,3 +121,17 @@ name after the tag name. Here are some examples: The :shescape may be used on plain strings to get a string which can pass through a single level of shell and give the original string. + +Query Expressions +----------------- + +Simple conditionals may be evaluated through query expressions. Expressions +are delimited by %|...|. The only type of expression currently supported +is a C-like ternary conditional, which provides simple if/then/else +conditions. For example, the following query format display "present" if +the SOMETAG tag is present, and "missing" otherwise: + + %|SOMETAG?{present}:{missing}| + +Notice that the subformats "present" and "missing" must be inside of curly +braces. |