aa.delete[n]should be
aa.delete(n)
poster.SetBreadcrumbText"[location1]", "[location2]")
if count > 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero
if count >= 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero
If in function scope and that function is not a method in and object, "m." also references the global associative array accessed with GetGlobalAA().
"Komag" wrote:
In 3.7.10 Logical and Bitwise Operators, (BrightScript Language Reference)
The example seems wrong:if count > 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero
But if count is zero, then 0 > 0 is false so it WILL evaluate total / count and cause the runtime error