## DC nested logical function

### DC nested logical function

Hello,

This doesn't works in sketchup:
IF( (length >=50)&&(with<=20),......)
The problem:
()&&()
How do I need to solve this?
0

dieter10

### Re: DC nested logical function

there is no "&&" function but "AND"

use =IF(and(leng >=50,with<=20),true,false)

or can use nested
=IF(leng >=50,if(with<=20,true,false),false)

which returns 0 or 1

true or false can replaced for any other outcome
0

pcmoor

### Re: DC nested logical function

And i have also some troubles with redrawing.
Can i make something that if i press the apply button that it automaticly redraws ?
0

dieter10

### Re: DC nested logical function

by using the "current" in a dummy variable you may achieve what you are after

aX = current("x")

can post the DC, or private message ?
0

pcmoor

### Re: DC nested logical function

My model is nearly finished.
Thanks for the reply's. Conclusion: you just need to think a moment how you're going to solve the problem and how you are going to create the formulas.
In the .gif file, you can see how i can modify the model.
But sometimes there is something that doesn't moves or ...
Is that a bug in sketchup? I never had this problem whem i'm starting from the original model.
0

dieter10

### Re: DC nested logical function

You would need to post the DC, so one can check for the error, otherwise look for the red # when it fails, or maybe a redraw is required.........one can only guess
1

pcmoor

### Re: DC nested logical function

Thanks for your reply pcmoor, i found 2 red #. The function of the subcomponent referred to a variable of another head component. And i forgot to define the x position of 2 pieces. Now it seems to work fine. I just need to add the position for the keys, because they are scaled with the door panel and i want them always off the same distance off the side.
0

dieter10