I'm extending my application with plugins and a small scripting language. It will only have 1 or 2 objects available.

I can probably do variables but I'm kind of at a loss for how to do conditional statements. I've never tried anything like this before and I'm actually kind of confused on where to start also.

But the main concern is conditional statements. It will only contain If/Then statements. Can someone give me some pseudo-code or logic or an example or something?

I found a few examples on Planet Source Code, but a lot were way too complex/sloppy-coded to be of much use and pick out the important parts.