Board Thread:Support Requests - Getting Technical/@comment-25201659-20150328150610/@comment-9605025-20150329184150

First of all, it takes time to get help. I posted a question over a week ago and still no one has responded. That being said, lets address your question.

Second, I would like to state what I think your template is doing. If my understanding in incorrect, please let me know. You have 12 fields (1-11 and t12). Each of those fields is assigned to a variable (1-12). Then, you redefine variable 1 in terms of the first defined field. You then redefine all variables in terms of variable 1. You then display the resulting values.

Now for what I see as issues:


 * 1) As far as I know, you cannot create a template that uses both named and unnamed fields. As soon as you name a field, unnamed fields are disabled.
 * 2) In your edited example above, you are using the field name '12' when the template has 't12' as the field name.
 * 3) When fields are undefined, is returned as is, a string. The "if" parser function checks to see if the argument exists and is not white space only. Therefore, when a field is undefined,  evaluates to true. In order to evaluate to false, you must assign a default value to be used in the event that the field is undefined. The format for this is  . While 'default_value' could be any combination of white space, it is simplest to use.

Now for the difference between named and unnamed fields. As already mentioned, you cannot use a combination. A template must either use nothing but unnamed fields or nothing but named fields.

When using a template with unnamed fields, the fields must be designated in order. Also, you cannot use something like "1=" since that implies a named field (the name being "1"). Let value_1, value_2, value_3, ... be the values for, , , ... .

Acceptible:



Not Acceptible:



Using named fields removes the order requirement but requires that the fields be specified when assigned a value.

Acceptible:



Not Acceptible:



Depending on the application, named fields may be the best solution. Names can be picked to describe the content and thus make editing the template easier. Furthermore, forms use names fields. So, it you intend to create a form for editing the contents, you must use named fields.

I hope this helps. - Edit:

One additional note, fields can be used in calculations, there is no need for the first round of variable assignments.