I want to create a strategy with different mode in it, so whenever I select the mode, it will automatically change the settings of the strategy, is that possible? In the following code, I want to make a dropbox with two modes user can choose. In this case, when the user picked, I intend to make the code automatically determine the default boolean of the textbox checkbox status.

```
mode = input(title = "Testing Mode",   defval = "mode1", options = ["mode1", "mode2"])

bool default = false

if mode == "mode1"
    default := false
else 
    default := true

check = input(default, title = "TEST")

test := check

```

But I got the following error, how can I fix it? Or is it possible to do so?

Line XX: Cannot call 'input' with 'defval'=bool. The argument should be of type: const bool;

==========================================================================

I tried to change the code as follow with no errors but the problem is there are two checkbox now and whenever I change the mode, the checkbox settings stay the same:

```
mode = input(title = "Testing Mode",   defval = "mode1", options = ["mode1", "mode2"])

bool default = false

if mode == "mode1"
    check = input(false, title = "TEST")
else 
    check = input(true, title = "TEST")

```