titanium Posted February 13, 2015 Posted February 13, 2015 Hi, I have the following calculation in one of my database fields. The test will check if a specific field has a value of 3 or above, and if so marks Passed, otherwise marks failed. It works fine as long as the result of the field isnt a two digit number that starts with 1 or 2. (11, 21, 19, 25 etc) . The calculation below seems to only be evaluating the first number, not the total number. If ( ( Initial Test Buffer PSID ≥ "3"); "Passed" ; "Failed") another with the same issue, but 2 rather than 3: If ( ( Initial Test Relief Valve Opened at psid ≥ "2"); "Passed" ; "Failed") I would love to hear feedback to how I can fix that. Thanks so much!
doughemi Posted February 13, 2015 Posted February 13, 2015 Take the quote marks off the number. They tell FileMaker to evaluate the number as a string rather than a number, which produces the result you are seeing. ( Initial Test Buffer PSID ≥ "3") should be (Initial Test Buffer PSID ≥ 3)
comment Posted February 13, 2015 Posted February 13, 2015 Also make sure that Initial Test Buffer PSID is a Number field.
titanium Posted February 13, 2015 Author Posted February 13, 2015 Thanks so much! both those were precisely what I had wrong. Now its works perfect. Thank you for the VERY FAST responses.
LaRetta Posted February 14, 2015 Posted February 14, 2015 If ( ( Initial Test Buffer PSID ≥ "3"); "Passed" ; "Failed") And just for future, you can drop that extra set of parentheses because they aren't needed, so it becomes: If ( Initial Test Buffer PSID ≥ 3 ; "Passed" ; "Failed" ) :-)
Recommended Posts
This topic is 3627 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