Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formula Lookup needs documentation #11

Open
sbauch opened this issue Jun 10, 2016 · 1 comment
Open

Formula Lookup needs documentation #11

sbauch opened this issue Jun 10, 2016 · 1 comment

Comments

@sbauch
Copy link
Collaborator

sbauch commented Jun 10, 2016

So I wrote this functionality and I have no idea how to use it.

I've been trying to use https://support.airtable.com/hc/en-us/articles/203255215-Formula-Field-Reference but it really isn't all that helpful.

For instance, I wanted to select only the records where a boolean column is true. For the formula string supplied to select I tried

approved = true
Approved = true
Approved IS true
TRUE(Approved)

until I landed, with a wild guess, on Approved = 1 which worked.

I'm happy to help document this, but I feel like I don't have enough knowledge about Airtable's code base to really do it accurately.

@syrnick
Copy link
Contributor

syrnick commented Jun 10, 2016

Fair point. We use Javascript semantics for truthfulness, so 0, null, [], '' would all be falsey, 1, 'foo', [0]. That should cover the basic expression

For complex formulas, I'd recommend setting up the formula in the UI first to validate what you're getting. You can wrap any condition you're not sure about with IF(condition, 1, 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants