// auto-transcompiled — see *.dnd.json for canonical truth
if(global.selectid > global.cselmax-1)
{
global.selectid = global.cselmax-1;
}
else if(global.selectid < 0)
{
global.selectid = 0;
}
