Add nested if() test. Update source locations.

This commit is contained in:
Michael Hohn
2023-12-05 18:55:06 -08:00
committed by =Michael Hohn
parent d02e26d6d2
commit 405b3a0661
12 changed files with 265 additions and 51 deletions

View File

@@ -0,0 +1,17 @@
var SampleUtility = function () {
var value = this.getParameter('value');
var ua = new GR('users');
ua.query();
if (!ua.hasNext()) {
ua.initialize();
ua.setValue('status', value);
ua.insert();
}
else {
ua.next();
ua.setValue('status', value);
ua.update();
}
}