WeBWorK Main Forum

Detect Gateway versus regular problem set

Re: Detect Gateway versus regular problem set

by Gavin LaRose -
Number of replies: 0
Hi all,

I think the best way to do this is to look at the set's type ($set->assignment_type()) and see if it matches /gateway/. If you're looking at the set versions that students are actually working, the set name will have ,vN appended, where N is the version number.

That said, I don't know that the set object is available in the PGcourse file.

Gavin