...
Code Block |
---|
stRatio = [Distinct Count: Student ID] / [Distinct Count: Teacher ID]; mediumThreshold = 20; highThreshold = 40; if (stRatio < mediumThreshold, "Low", if (stRatio >= highThreshold, "High", "Medium" ) ) |
This example is the same as above, but applies green, red, and yellow colors to the text. It also makes the word "High" appear in bold formatting.
Code Block |
---|
stRatio = [Distinct Count: Student ID] / [Distinct Count: Teacher ID];
mediumThreshold = 20;
highThreshold = 40;
if (stRatio < mediumThreshold,
"<span style=\"color:green\">Low</span>",
if (stRatio >= highThreshold,
"<span style=\"color:red;font-weight:bold\">High</span>",
"<span style=\"color:yellow\">Medium</span>"
)
)
|
...
Code Block |
---|
profLevel = 4;
before = if ([Average: Essay 1st Submission Score] < profLevel,
"Below",
"Above"
);
after = if ([Average: Essay Most Recent Score] < profLevel,
"Below",
"Above"
);
if (before == "Below" && after == "Above",
"Improved",
if (before == "Above" && after == "Below",
"Got Worse",
"Unchanged"
)
)
|