Differences

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

Link to this comparison view

a_f:f:99_a:eval_string [2022/09/01 05:33] – created - external edit 127.0.0.1a_f:f:99_a:eval_string [2022/09/02 02:41] (current) – ↷ Page moved from a_f:f:99_a:eval_string to a_f:f:f:eval_string administrator
Line 1: Line 1:
-{{tag>Functions Function_List Miscellaneous}} 
-====== EVAL_STRING ======  
-===== Description =====   
-Evaluates the specified string as if it was a condition of the Rule Language. Returns the result of evaluation, which can either be a numeric value or “Yes/No” value 
-===== Parameters =====   
-An expression providing a string. Two optional extra parameters specify what should happen when condition evaluates to Yes or No (see the last example) 
-===== Example =====   
-<code aim>Object.Attribute = 'Customer.Nmb'IF EVAL_STR (Object.Attribute ) = 5 THEN ... </code> 
-<code aim>Object.Attribute = 'Customer.Nmb >5'IF EVAL_STR(Object.Attribute) = 'Yes' THEN ... </code> 
-<code aim>Company.Address = Company.Address1 + EVAL_STRING('Company.Address2 IS DEFINED', CR() + Company.Address2, '') </code> 
  
  • Last modified: 2022/09/13 18:12