Do quiz formula question support greater than or equal >=

Jump to solution
lherdan
Community Participant

An instructor would like to use the formula below in quiz formula question.

if abs(zscore) > = 3

This results in an unrecognized token error. Can you use "> =" with the formula question? It would be helpful to know what functions are not supported in a formula question. Instructors want to use expressions that work in Excel, but from my experience Canvas is not as robust.

1 Solution
NicoletteStaley
Community Team
Community Team

@lherdan I believe that the issue being encountered by the instructor when trying to use the formula: if abs(zscore) > = 3 in a formula quiz question is the number of arguments in the if statement.  When if is used in the formula quiz, it takes three arguments: the boolean (abs(zscore)>=3 in this case), a success value, and a fail value.  Since the if is missing two condition, the token error arises.  

More detail on using formula quiz questions can be found in How do I create a Formula quiz question with a single variable? but I believe the Canvas Formula Quiz Question Helper Functions PDF documentation will be of even more assistance on this issue.

View solution in original post

0 Likes