String Variables Calculator
String Variables
PowerOne can handle multiple data types. One of those is strings. String variables allow for the entry of arbitrary text in the template and are defined using quote marks. There are also a number of dedicated functions for working with strings. See [https://.../t/help_functions_strings|math functions] for details.
[https://.../t/help_variables|Learn more about variables].
Creating Strings
Often it is useful for the template user to enter arbitrary text in a template. This may include a customer or other reference, or may just include arbitrary information collected for a specific calculation.
To create a string variable with no default text, assign the variable to an empty quoted string (two quote marks back-to-back):
To include some default text for the string, add text within the quote marks:
Selecting the row in the template will provide a text field:
Customer Initials =
Calculated by = John Smith
By default these text fields are a single line and will not accept a return. For a multi-line text field, select **details** then check **multi-line**:
Select the source row above to see its details, or select Description row below to see a multi-line field.
Description =
Using Quote Marks within Strings
Any character available for typing into a word processor is applicable for a string's default value. However, quote marks are used to start and end the string. To use quote marks within your default value, escape it with a back slant (\").
Note that this is not required when typing quote marks into a string field in the template, only when modifying the source.
Keywords
Customer Initials
Calculated by
Description
-------------
""
\"
Quote marks