Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

What is the Variable value of Checkbox? #39

orgas002 ·

Hi,

I tried setting up a variable of a Checkbox inside one of my configurations. I tried getting the result inside a groovy script file as:

groovy:
import com.pmease.quickbuild.variable.VariableAccessor;
checkboxVar = vars.getValue("Checkbox").asBoolean()
//logic here

but when I try to get the result of checkboxVar, it isn't a bool value, so what type of value is returned?

Thanks.

  • replies 1
  • views 929
  • stars 0
robinshen ADMIN ·

Please change vars.getValue("Checkbox").asBoolean() as below:

vars.get("Checkbox").asBoolean()

getValue will return the value as string