Selenium IDE

Im trying to figure out how to use Selenium IDE but the documentation is a bit fuzzy. Right now I need to be able to access a variable from within Selenium:

command: storeTextPresent
target: bar
value foo

command: verifyTextPresent
target: ${foo}

but it says its failing. Any help would be greatly appreciated