How are if statement in .vimrc executed
<p>I was thinking of writing an <strong>if</strong> statement in .vimrc file for my requirement. However I am not sure how <strong>if</strong> statements are executed in .vimrc. Are they executed only once when vim is started or every time the <strong>if</strong> event occurs? for example I am planning to insert following code in .vimrc</p>

<pre><code>"Check if the drop down menu is active
if pumvisible()
   "pass 'down' key to vim
   \&lt;lt&gt;Down&gt;
endif
</code></pre>

<p>Will this <strong>if</strong> code be executed every time the pumvisible() is active in vim workspace or it won't work at all?</p>