Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:3000_rule_language:0400_rule_language [2022/09/01 06:51] administratordocs:3000_rule_language:0400_rule_language [2025/06/12 03:59] (current) – Change to AwareIM aware_support3
Line 65: Line 65:
 ==== Function ==== ==== Function ====
  
-A function performs some calculation and returns the result as a Literal. There are a number of built-in functions that //**Aware IM**// supports. New functions can be plugged in as well (see "Aware IM Programmer’s Referefence"). A function may or may not have parameters. Parameters of a function must be Arithmetic Operations. IF a function does not have parameters then it can be referred to by name only. IF a function has parameters, they are listed after the function’s name and enclosed in brackets. Parameters are separated by the comma symbol. Examples of functions:+A function performs some calculation and returns the result as a Literal. There are a number of built-in functions that //**AwareIM**// supports. New functions can be plugged in as well (see "AwareIM Programmer’s Referefence"). A function may or may not have parameters. Parameters of a function must be Arithmetic Operations. IF a function does not have parameters then it can be referred to by name only. IF a function has parameters, they are listed after the function’s name and enclosed in brackets. Parameters are separated by the comma symbol. Examples of functions:
  
   * ''CURRENT_DATE'' - function with no parameters   * ''CURRENT_DATE'' - function with no parameters
Line 71: Line 71:
   * ''MONTH_DIFFERENCE (Account.OpeningDate, Account.ClosingDate)'' – function with two parameters   * ''MONTH_DIFFERENCE (Account.OpeningDate, Account.ClosingDate)'' – function with two parameters
  
-The complete list of built-in functions supported by //**Aware IM**// is provided in the [[a_f:f:99_a|here]].+The complete list of built-in functions supported by //**AwareIM**// is provided in the [[a_f:f:af|here]].
  
  
Line 145: Line 145:
 It is possible to use a special expression ''LOGGED_IN_USERS'' instead of the list of references. This will check if the specified user is logged in, for example: It is possible to use a special expression ''LOGGED_IN_USERS'' instead of the list of references. This will check if the specified user is logged in, for example:
  
-<code aim>FIND SystemUser WHERE SystemUser.LoginName='John' </code>+<code aim>FIND SystemUser WHERE SystemUser.LoginName='John'</code>
  
-<code aim>IF SystemUser IN LOGGED_IN_USERS THEN  +<code aim>IF SystemUser IN LOGGED_IN_USERS THEN DISPLAY MESSAGE 'John is logged in' </code>
-     DISPLAY MESSAGE 'John is logged in' </code>+
    
 ===== List expression ===== ===== List expression =====
  • Last modified: 2022/09/13 18:09