This is some pretty basic Javascript stuff, but driving me a little crazy:
I have this simple code:
When SRC_COUNT is equal to DM_COUNT, it ends up setting "FAIL" to the variable "pass_fail" If I use "=" instead of "==" it correctly writes "PASS" to the stream.
Shouldn't "==" be correct to use to compare two values? SRC_COUNT and DM_COUNT are two values passed from the stream and not variables in the javascript itself--does that make a difference?
I have this simple code:
Code:
var pass_fail = "";
if (SRC_COUNT == DM_COUNT)
{
pass_fail = "PASS";
}
else
{
pass_fail = "FAIL";
};
Shouldn't "==" be correct to use to compare two values? SRC_COUNT and DM_COUNT are two values passed from the stream and not variables in the javascript itself--does that make a difference?