waituntil command

hello all, im kinda new to programming, so ill keep this short, however every time i use the command waitUntil(sensorvalue[sensor])
it grays out waitUntil and doesn’t recognize it as a command, any help is appreciated, as i use it almost everywhere in my code

That’s because you’re using PLTW natural language, not VEX code. (Assuming you’re doing this for VEX). WaitUntil isn’t recognized because it’s not something meant for VEX completion. You’d actually have to code out the meaning of WaitUntil yourself, something like this:


while (SensorValue[sensor] < target) {}

Thank you