Programmer Guide/General Descriptions/Find Expressions: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
|<code>=</code> (is assigned), <code>!</code> (is not assigned)
|<code>=</code> (is assigned), <code>!</code> (is not assigned)
|}
|}


{|style="margin-left:1.5em;"
{|style="margin-left:1.5em;"
Line 24: Line 25:
|-
|-
|<var>cond</var>
|<var>cond</var>
|<code>&lt;</code>, <code>&lt;=</code>, <code>==</code>, <code>!=</code>, <code>&gt;=</code> or <code>&gt;&lt;/code>
|<code>&lt;</code>, <code>&lt;=</code>, <code>==</code>, <code>!=</code>, <code>&gt;=</code> or <code>&gt;</code>
|-
|-
|<var>value</var>
|<var>value</var>
|a number or numerical expression, or a string.
|a number or numerical expression, or a string.
|}
|}


{|style="margin-left:1.5em;"
{|style="margin-left:1.5em;"
|-
|-
|<code><var>fieldid</var>:<var>cond</var>:<var>mask</var></code>
|<var>fieldid</var><code>:</code><var>cond</var><code>:</code><var>mask</var>
|Match the value of a string field (type <code>NAME</code> or <code>STRING</code>).{|
|Match the value of a string field (type <code>NAME</code> or <code>STRING</code>).{|
|-
|-

Latest revision as of 15:50, 28 April 2014

cexpr Description
fieldid:cond
fieldid name or index of a defined field
cond = (is assigned), ! (is not assigned)


fieldid:cond:value
fieldid name or index of a numerical field (0 for simple tables)
cond <, <=, ==, !=, >= or >
value a number or numerical expression, or a string.


fieldid:cond:mask
fieldid name or index of a string field (0 for simple tables)
cond =I match, ignoring case
!I do not match, ignoring case
=R match, respecting case
!R do not match, respecting case
mask match string, may contain wildcard characters. if field is of type name, mask must be a valid name

Navigation menu

Personal tools