I am looking to use toggle and turn on/off based on if condition, I tried the following code but dint work as expected.
If('User Input' > 'Output - Max' = "Yes","No")
Based on your comment, you should configure your toggle control like this:
Displaymode.View
Value(Textbox1.Text) > Value(Textbox2.Text)