string_equations
Differences
This shows you the differences between two versions of the page.
| string_equations [2016/10/26 16:22] – created johnsoevans | string_equations [2025/09/19 15:18] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== String Equations ====== | ||
| + | |||
| + | Topas v6 includes string equations. | ||
| + | |||
| + | <code topas> | ||
| + | out_file = aac.out; ‘ This will throw an exception | ||
| + | out_file = " | ||
| + | out_file = String(aac.out); | ||
| + | out_file = If(Get(r_wp) < 10, " | ||
| + | out_file = If(Get(r_wp) < 10, Concat(String(INP_File), | ||
| + | |||
| + | Some new string handling features are: | ||
| + | |||
| + | <code topas> | ||
| + | prm sasb = 4.321; | ||
| + | prm sa = " | ||
| + | prm sb = " | ||
| + | prm sc = sb; | ||
| + | prm = Variable_Name_From_String(Concat(sa, | ||
| + | prm = Variable_Name_From_String(Concat(String(sa), | ||
| + | |||
| + | String and Variable_Name_From_String are new functions. | ||