Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
196 bpr 1
 
152 bpr 2
!readproc tabletheme
196 bpr 3
 
4
!if $lang iswordof cn fr
5
 !read help/$lang/if.phtml
152 bpr 6
!exit
7
!endif
20 reyssat 8
 
9
<p>All comparisons are made on strings: <tt>string1 rel string2</tt>.
10
Comparisons can be joined using <tt>and</tt> and <tt>or</tt>. Parentheses may
11
be used to build complex comparison logics.<p>
12
Valid relations <tt>rel</tt>:
13
  <p>$table_header
14
   $table_tr<td align=center>relation<td align=center>condition
15
   $table_tr<td align=center><tt> = </tt> or <tt>==</tt><td>true if <tt> string1
16
       </tt> and <tt> string2 </tt> are identical.
17
   $table_tr<td align=center><tt> != </tt> or <tt>&lt;&gt;</tt>
152 bpr 18
    <td>true if <tt> string1
20 reyssat 19
       </tt> and <tt> string2 </tt> are NOT identical.
20
   $table_tr<td align=center><tt> < </tt><td>true if (the numerical evaluation of)
21
       <tt> string1 </tt> is < <tt> string2 </tt>.
22
   $table_tr<td align=center><tt> <= </tt><td>true if (the numerical evaluation of)
23
       <tt> string1 </tt> is $m_le <tt> string2 </tt>.
24
   $table_tr<td align=center><tt> > </tt><td>true if (the numerical evaluation of)
25
       <tt> string1 </tt> is > <tt> string2 </tt>.
26
   $table_tr<td align=center><tt> >= </tt><td>true if (the numerical evaluation of)
27
       <tt> string1 </tt> is $m_ge <tt> string2 </tt>.
28
   $table_tr<td align=center><tt> isin </tt><td>true if <tt> string1
29
       </tt> is a substring of <tt> string2 </tt>.
30
   $table_tr<td align=center><tt> notin </tt><td>true if <tt> string1
31
       </tt> is NOT a substring of <tt> string2 </tt>.
32
   $table_tr<td align=center><tt> iswordof </tt><td>true if <tt> string1
33
       </tt> is a word of <tt> string2 </tt>.
34
   $table_tr<td align=center><tt> notwordof </tt><td>true if <tt> string1
35
       </tt> is NOT a word of <tt> string2 </tt>.
36
   $table_tr<td align=center><tt> isvarof </tt><td>true if <tt> string1
37
       </tt> is a (mathematical) variable of the expression 
38
       <tt> string2 </tt>.
39
   $table_tr<td align=center><tt> notvarof </tt><td>true if <tt> string1
40
       </tt> is NOT a (mathematical) variable of the expression
41
       <tt> string2 </tt>.
42
   $table_tr<td align=center><tt> isvariableof </tt><td>true if <tt> string1
43
       </tt> is a (mathematical) variable of the expression 
44
       <tt> string2 </tt>.
45
   $table_tr<td align=center><tt> notvariableof </tt><td>true if <tt> string1
46
       </tt> is NOT a (mathematical) variable of the expression
47
       <tt> string2 </tt>.
48
   $table_tr<td align=center><tt> isitemof </tt><td>true if <tt> string1
49
       </tt> is an item of the list <tt> string2 </tt>.
50
   $table_tr<td align=center><tt> notitemof </tt><td>true if <tt> string1
51
       </tt> is NOT an item of the list <tt> string2 </tt>.
52
   $table_tr<td align=center><tt> islineof </tt><td>true if <tt> string1
53
       </tt> is a line of the list <tt> string2 </tt>.
54
   $table_tr<td align=center><tt> notlinedof </tt><td>true if <tt> string1
55
       </tt> is NOT a line of the list <tt> string2 </tt>.
56
   $table_tr<td align=center><tt> issamecase </tt><td>true if <tt> string1
57
       </tt> and <tt> string2 </tt> are the same text by a comparison
58
       insensitive to multiple spaces but case-sensitive.
59
   $table_tr<td align=center><tt> notsamecase </tt><td>true if <tt> string1
60
       </tt> and <tt> string2 </tt> are NOT the same text by a comparison
61
       insensitive to multiple spaces but case-sensitive.
62
   $table_tr<td align=center><tt> issametext </tt><td>true if <tt> string1
63
       </tt> and <tt> string2 </tt> are the same text by a comparison
64
       insensitive to cases, multiple spaces and accented letters.
65
   $table_tr<td align=center><tt> notsametext </tt><td>true if <tt> string1
66
       </tt> and <tt> string2 </tt> are NOT the same text by a comparison
67
       insensitive to cases, multiple spaces and accented letters.
68
 
69
  $table_end<p>