In this lecture we are going to implement it very simple if statement that will clear the default Zerah
the moment we've got a deformed zero in the result bogs here.
So any of the kids will kleek guess added on to the zero.
So what we're going to do in this lecture here will implement this simple statement that wall clear
is zero when you impedes any of the keys.
The numeric keys.
That's all right.
So let's go ahead and start to implement that.
So I'm going to implement that just a ball of this button here.
All right let's implement that somewhere here.
Some would see if
you have the result box which is the result of the computed numbers.
So when you click on it.
PS It displays and the result ponson going to see it the result box not text goes is a text so a text
from that
is treat is equal to what you doing.
Were you checking conditions you used double equals to a single cause to the issues to our side.
The value double was to compare is something some say in the results box text into text from that result.
Box is strictly equal to zero.
You need to specify what will happen then what will happen.
I need to specify here so I save is equal to zero and then the result box.
I'm attaching E daut Clear Mitt at some touch in a clear fire screwed through you can see the method
here.
There is a climate and said.
So the result bogs Dort click.
Put a semicolon.
So what this.
It will check if the text in the Risen box is truly quasi zero.
It will clear that just before you input a button.
So save that.
I'll run the code.
Seal happens.
So I expect when I click on any of the buttons now the numeric buttons zeroes should disappear.
So for you see that I say it's like it's a less wood on get.
The preceding is zero.
So that's it for this later.
We've implemented a simple statement that checks the condition to see if there is a text call.
If there's this value is present before you click on the key and it will clear this before you input
any key use in the dot Clay method.
That's it for this lecture.
Thank you so much for watching.
Bye for now.