## WeBWorK Main Forum

### Re: finding the max number of allowed attempts in a problem

by Joseph Maher -
Number of replies: 0

I just added an extra var

$envir{maxAttempts} =$problem->max_attempts;

in webwork2/lib/WeBWorK/PG.pm

Joseph