Can anyone help? I have a control in place place that forces the user to click on a checkbox, the code below identifies the value of the checkbox and should then change the default view . The code is below:

var strValue
strValue = XDocument.DOM.selectSingleNode"//my:Change/my:ChangeSubmit").text


if (strValue.text = "false")
XDocument.ViewInfos("Main View").IsDefault = true;

if (strValue.text = "true")
XDocument.ViewInfos("TUG View").IsDefault = true;

The value (strValue) is correct and is giving me a true or false text value via the alert. The problem I am having is that the "If" statement is not
recognising the value.

Any suggestions greatly appreciated.

Many thanks