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
a_f:f:af:eval_string [2022/09/02 02:51] – removed - external edit (Unknown date) 127.0.0.1a_f:f:af:eval_string [2023/05/09 00:51] (current) – [Example] sean
Line 1: Line 1:
 +{{tag>Index Function Function_List Miscellaneous Version:v8.1}}
 +====== 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>