The Yes/No field in Nionx is a binomial. Binomial fields can only exist in one of two states which are generically referenced as On/Off, True/False or 0/1. A Yes/No field may be displayed on the form screen in Ninox as a Combo Box, Checkbox, Swtich or Slider. All of these options in all of their states are presented in the image below.

As the value of a binomial may never be anything other than On or Off (Yes or No), Yes/No fields in Ninox should represent a question to which there are only two logical answers. Examples of effective uses and applications of the Yes/No field include “Are You Attending”, “Did The Student Pass The Class”, “Has This Case Been Closed”. Examples of ineffective applications of this type of field include “Hair Color”, “Favorite Song” and “Current Status” as each of these “questions” can be correctly answered with responses other than Yes or No.

In the context of a Ninox data model, a Yes/No field is a choice field where there are only two choices and they are always “Yes” or “No” or “True” of “False”.

It is important to note that Yes/No fields do, in and of themselves, resolve to either “True” or “False”. As such, there is no need to evaluate the contents of a Yes/No field through comparative analysis. For example, the following code block would not be correct:

if ‘Permit Approved’ = “True” then … as comparing the Yes/No field to the boolean construct “True” is redundant. The correct syntax for this code block would be if ‘Permit Approved’ then … The second code block is correct since the Yes/No field ‘Permit Approved’ itself distills down to a state of “True” (selected) or “False” (not selected).

Revision: 5
Last modified: 2019/03/27

Réaction

Était-ce utile?

Oui Non
Vous avez indiqué que ce sujet ne vous a pas été utile ...
Pouvez-vous SVP laisser un commentaire nous disant pourquoi? Merci!
Merci pour vos commentaires.

Laissez votre avis sur ce sujet.

SVP ne pas utiliser pour des questions de support technique.
Pour le support à la clientèle, SVP nous contacter ici

Valider