probiner Posted September 6, 2018 Share Posted September 6, 2018 (edited) Given two string parameters I tried to check if they are equal to disable another parameter, but doesn't work atm. { parma == "" } works { parmb == "" } works { parma == parmb } doesn't work Any idea why? Thanks Edited September 6, 2018 by probiner Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted September 7, 2018 Share Posted September 7, 2018 Here is the documents on this. In short, they can an only look at the resolved values, i.e. a local referenced parameter on the left, and a static value on the right. http://www.sidefx.com/docs/houdini/ref/windows/optype.html#conditions So you could do { parma == "" parmb == "" } this would mean they both need to be true in order to work an (and) operation. Or if { parma == "" } { parmb == "" } would be an (or) operation. You can also do ==, !=, <, >, >=, <=, =~ (matches pattern), !~ (doesn’t match pattern) as additional operations. What is a actually quite common is to make a parameter that is invisible (or under a hidewhen under an advanced set of options) that you can use to hide and disable parameter and folder menus. Quote Link to comment Share on other sites More sharing options...
probiner Posted September 8, 2018 Author Share Posted September 8, 2018 @LaidlawFX Thanks I visited this page but didn't notice that. I guess I'll an expression on a hidden param and that is a resolved value I can then use as conditional. Thanks! Quote Link to comment Share on other sites More sharing options...
klawchi Posted May 12, 2022 Share Posted May 12, 2022 Is this working only with local parm? Can you check if another node's parm? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.