If with checkbox not working

#1

Hi everyone !
Here’s a very simple formula :
IF(
{Edition}=1,
{Genuine Console Family},
IF(
NOT(
AND(
{Accessories list},
{Games}
)
),
{Genuine Console Family}
)
)

I don’t know why, the first IF doesn’t work at all. I check the checkbox and nothing happens.
But, when Accessories list and Games have values, I can check and the field is fill with the right value (Genuine Console Family).

Thanks a lot for any help.

0 Likes

#2

I just tried your formula. It does work, but maybe you’ve got the logic wrong for the behaviour you want. What exactly are you trrying to achieve?

0 Likes

#3

OK let me explain.
I want to display {Genuine Console Family} (another field content) if:

  • checkbox is checked
    OR
  • {Accessories list} AND {Games} are empty (both at the same time)
0 Likes

#4

IF(
OR({Edition}=1,AND({Accessories list}="",
{Games}="")
),
{Genuine Console Family},
BLANK()
)

0 Likes

#5

That’s assuming Accessories List and Games are both text fields.

I think your problem was applying NOT to an AND statement. Your AND statement was evaluating as TRUE if both Accessories and Games were not empty, and FALSE in all other instances. The NOT statement then reversed this. So it was FALSE when both Accessories and Games were not empty and TRUE for all other instances.

0 Likes

#6

And they’re not text fields… :slight_smile:

0 Likes

#7

You might need to change the Accessories List and Games evaluations then. Possibly to:

AND({Accessories list}=0,{Games}=0)

0 Likes

#8

So I did test what you wrote… and still, when I check the checkbox, nothing is displayed in the field.
I don’t understand at all what is the problem.

0 Likes

#9

What type of fields are Accessories List and Games?

0 Likes

#10

Both are links to fields

0 Likes

#11

Are you sure {Genuine Console Family} is not empty?

0 Likes

#12

Absolutely !
Because it fills up while Accessories list OR Games is filled.

0 Likes

#13

So when Accessories List and Games are both empty then Genuine Console Family is also empty?

Here’s a link to an Example base that works with the behaviour you have described.

0 Likes

#14

Genuine Console Family should be empty when: Accessories List and Games are both empty and checkbox unchecked
Genuine Console Family should be filled when: Accessories list OR Games are not empty, OR checkbox checked.
:slight_smile:
Yes I know it’s a bit weird. I have some conditional statements in order to filter my linked fields (accessories and games) depending on this field. It checks if there’s a value and this value is connected to a family of console, so are accessories and games.

0 Likes

#16

I made a mistake… and I’m sorry.
I forget to mention that I need to fill another field (hardwares) in order to have Genuine Family Console field not empty… so it works like a charm !
Thanks for helping my brain working :wink:

0 Likes