Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44324

SAMIGO - Calculated Questions: Some functions don't work (mXparser)

    XMLWordPrintable

    Details

    • 21 Status:
      Verified
    • 20 status:
      Verified
    • Test Plan:
      Hide
      1. Go to Test & Quizzes
      2. Add Calculated Question
      3. Add the instructions
      {{sol}} 
      
      C({x},5)      [[C({x},5)]] 
      
      1. Extract the variables.
      2. Add to Formula textfield: {x} + 1
      3. Save
      4. No error should appear
      Show
      Go to Test & Quizzes Add Calculated Question Add the instructions {{sol}} C({x},5) [[C({x},5)]] Extract the variables. Add to Formula textfield: {x} + 1 Save No error should appear

      Description

      These functions doesn't work on calculated questions

      Try adding [[  ]] on each one:
      Dont' work: C(8,3) mXparser - built-in Binary Functions

      Dont' work: qNor(0.5, 2, 1) mXparser - built-in 3-args Functions

      Dont' work: cNor(0.7, 3, 1) mXparser - built-in 3-args Functions

      Dont' work: if({alea}>==3, 5, 2)

      Dont' work: if({alea}>3, 5, 2)

      Dont' work: if({alea}<=3, 5, 2)

      Dont' work: if({alea}<3, 5, 2)

      Dont' work: if({alea}=3 && {alea2}=1, 5, 2)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jesusmmp Jesus Maria Mendez
                  Reporter:
                  jesusmmp Jesus Maria Mendez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration