Jump to content

Disable When / Hide When parameter equal to parameter

Recommended Posts

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?

Edited by probiner

Share this post

Link to post
Share on other sites

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.


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.


Share this post

Link to post
Share on other sites

@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!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now