On XSnippets I have posted a snippet, to get the ComponentValue
http://openntf.org/XSnippets.nsf/snippet.xsp?id=getcomponentvalue
Put the function a SSJS Scriptlib and call it. You will get the component value in return, no matter what.
Or
Try to compareTo method of the String object, like return getComponentValue("componentID").compareTo("No")