tags:

views:

41

answers:

2

I'm trying to create a script in filemaker that returns true if table::field = 1 for a certain dataentry, and false in all other cases. How do I do this?

+1  A: 

You can use the Set Variable script step to set a $$variable using the calculation engine to return true or false.

Nate Bross
+1  A: 

A script can return a value with the Exit Script step. To return a Boolean value set the step's result to your expression: Table::Field = 1. The Table::Field must be accessible in the current context (i.e. layout). The result will be the Boolean you're looking for (technically it will be a number). To access this value you need to query it with the Get( ScriptResult ) function.

The way you describe it it doesn't really sound FileMaker, so if this is not the answer you expected, please provide some context for what you're trying to accomplish.

Mikhail Edoshin