Checking strings with
<p>I have a series of if statements in a function like this:</p>

<pre><code>if time == "%%00":
    #code
elif time == "%%15":
    #code
elif time == "%%30":
    #code
elif time == "%%45":
    #code
</code></pre>

<p>Where time is 24 hour format ie. 0000-2400 and I'm checking what 15 interval time is at. All the statements are ignored however, so "%%interval" doesn't work. Is it just something simple I'm missing here or do I need a different method?</p>
