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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug: Formula IF is null not working #4678

Closed
1 task done
emre1e opened this issue Dec 21, 2022 · 2 comments
Closed
1 task done

馃悰 Bug: Formula IF is null not working #4678

emre1e opened this issue Dec 21, 2022 · 2 comments
Labels
馃悰 Type: Bug Something is broken or incorrect unexpectedly.

Comments

@emre1e
Copy link

emre1e commented Dec 21, 2022

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

Create a Formula -> Enter: IF({column} == null,"Value",null)
Output always null. Noco doesnt recognize a null value on operand

Desired Behavior

Operand works with null value

Project Details

Docker, postgres, 0.100.2

Attachements

No response

@wingkwong wingkwong assigned wingkwong and unassigned o1lab Dec 21, 2022
@wingkwong
Copy link
Member

This should be considered as an invalid formula. You may try the following instead

IF({column} == "", "Value", "")

@emre1e
Copy link
Author

emre1e commented Dec 22, 2022

If i go with == "" its not working with null values. Only for empty strings.

null is recognized by nocodb so its not invalid. You can also use null as success or elsecase and set it, but not as Expression.

Thank you.

@dstala dstala added the 馃悰 Type: Bug Something is broken or incorrect unexpectedly. label Dec 26, 2022
@o1lab o1lab added this to the Next Release: 0.102 milestone Jan 14, 2023
@wingkwong wingkwong removed this from the Next Release: 0.102 milestone Jan 26, 2023
@wingkwong wingkwong removed their assignment Jun 5, 2023
@emre1e emre1e closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 Type: Bug Something is broken or incorrect unexpectedly.
Projects
None yet
Development

No branches or pull requests

4 participants