While button not pressed?

I`m currently trying to execute code while a controller button is not pressed in vex coding studio. In robotC it was done like this…

while(vexRT[Btn8D]!=1){
//code
}

Anyone know how to do this with v5 and coding studio?

The way to do it in VCS is like this


while(!Controller1.ButtonB.pressing()) {
 // code
}