PennController for IBEX › Forums › Support › Using if statements during a trial › Reply To: Using if statements during a trial
June 4, 2020 at 11:57 am
#5587
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi Max,
As you say, the remove commands applies to the element it attaches to, so just attach it to the elements you want to remove:
getButton("FTButton2") .print() .wait() .remove(), getText("FullText").remove(), getText("CompQ") .print(), getButton("CQButton") .print() .wait() .remove(), getText("CompQ").remove()
Jeremy