WeBWorK Main Forum

Assignment name and problem number available?

Re: Assignment name and problem number available?

by Davide Cervone -
Number of replies: 0
The set name is $setNumber and the problem number os $probNum or questionNumber

You can find out all the variables available to you by loading PGinfo.pl and issuing the command

    listVariables();
This will print out all the variable names and values, plus the form values sent to the page by the last submit or check-answer button press.