concrete Posted March 26, 2003 Share Posted March 26, 2003 what is the best way to have boolean fields. for example: gender: man/woman or yes/no fields Link to comment Share on other sites More sharing options...
djgogi Posted March 26, 2003 Share Posted March 26, 2003 I'm always using 0/1 logic so that I can say Case(flag, value for case 1,value for case 0) BTW this requires additional fields for display purpose. Dj Link to comment Share on other sites More sharing options...
Chuck Posted March 26, 2003 Share Posted March 26, 2003 I would only use a "boolean" field when the field is actually holding an on/off or true/false possibility. For gender I would use a text field tied to a value list and validated by the value list. Keep in mind that for FileMaker, a boolean field is simply a number field where a value of 0 is interpreted as "false" and any other value is interpreted as "true". I usually name such field beginning with the word "Is" or "Has", as in "IsPrimaryContact" or "HasOutstandingBallance". This makes calculations based on the field easier to read, as in "If ( HasOustandingBalance, ... )". Chuck Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7865 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now