Does the blynk app allow to use if while do while or c funtions

I need to create an application on android that allows me to read sensor information from a nodemcu (it is already done) but that the app also read this data and this application on android decides that led turn off or turn on
(I know that nodemcu can do it but, at the request of my school, I require the app to do it on android)

Yes, but do while is a bad structure for an IOT project on an ESP8266.

It’s better to use Arduino’s SimpleTimer functions.