awtk/tests/fscripts/demo_function3.fs
2021-08-26 07:40:37 +08:00

14 lines
218 B
GLSL

function foo4 (v1, v2) {
var v3 = v1 + v2;
if(v3 < 100) {
var name = "awtk";
} else {
var name = "react-awtk";
}
return name;
}
assert(foo4(10, 20) == 'awtk')
assert(foo4(100, 200) == 'react-awtk')