Checks whether a certain condition on the stud's generated variables hold true

holds.true(
  cond,
  short.message = failure.message,
  failure.message = "Failure in holds.true",
  success.message = "Great, the condition {{cond}} holds true in your solution!",
  part = NULL,
  ps = get.ps(),
  stud.env = ps$stud.env,
  cond.str = NULL,
  ...
)

Arguments

cond

The condition to be checked

failure.message

The failure message to be shown if the text fails.

success.message

The success message