Differences

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

Link to this comparison view

Both sides previous revision Previous revision
ref:a_f:f:af:eval_string [2026/08/13 00:43] – removed - external edit (Unknown date) 127.0.0.1ref:a_f:f:af:eval_string [2026/08/13 00:43] (current) – ↷ Page moved from a_f:f:af:eval_string to ref:a_f:f:af:eval_string localdev
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>