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

Vaše mišljenje

Da li je ovo bilo korisno?

Da Ne
Označili ste da vam ova stranica nije pomogla..
Možete li objasniti zašto? Hvala!
Hvala na vašem mišljenju!

Pošalji svoje mišljenje o ovoj stranici.

Molimo, nemojte ovo koristiti za podršku.
Za podršku nas kontaktirajte ovdje.

Pošalji komentar