You'll have to download the Flow Control plugin for Selenium IDE from the official page
The alternative way is implementing the whole logic in javascript - including the test steps.
var value = this.browserbot.findElement("id=Input").value;
if (value == "Find the value!") {
this.browserbot.findElement("id=Button").click();
}