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/13 18:15] – external edit 127.0.0.1a_f:f:af:eval_string [2023/05/09 00:51] (current) – [Example] sean
Line 1: Line 1:
-{{tag>Functions Function_List Miscellaneous}}+{{tag>Index Function Function_List Miscellaneous Version:v8.1}}
 ====== EVAL_STRING ======  ====== EVAL_STRING ====== 
 ===== Description =====   ===== Description =====  
Line 6: Line 6:
 An expression providing a string. Two optional extra parameters specify what should happen when condition evaluates to Yes or No (see the last example) 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 =====   ===== Example =====  
-<code aim>Object.Attribute = 'Customer.Nmb'IF EVAL_STR (Object.Attribute ) = 5 THEN ... </code> +<code aim>Object.Attribute = 'Customer.Nmb'  
-<code aim>Object.Attribute = 'Customer.Nmb >5'IF EVAL_STR(Object.Attribute) = 'Yes' THEN ... </code>+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> <code aim>Company.Address = Company.Address1 + EVAL_STRING('Company.Address2 IS DEFINED', CR() + Company.Address2, '') </code>
  
  • Last modified: 2022/09/13 18:15