/* substr */

var foo = "foo bar";
var ret = 0;

if (foo[4] == "x") {
	ret = ret + 1;
} else {
	ret = ret + 2; /* correct */
};

if (foo[2] == "o") {
	ret = ret + 10; /* correct */
} else {
	ret = ret + 20;
};

return ret;
