# Evaluating Multiple Expressions in an If Statement

It is common to have multiple expressions in an `If` statement using logical operators `And, Or`, etc. Remember that every expression in the `If` statement will always be evaluated, even if a previous expression renders the entire statement `False`. This could cause an unexpected error in certain situations.

```'
' Even if x=0 the second expression will be evaluated
' raising a divide by 0 error.
'
If (x > 0) And (y / x > 1) Then
' Do something here
End If

'
' Separate the expressions to avoid a divide by 0 error.
'
If (x > 0) Then
If (y / x > 1) Then
' Do something here
End If
End If```
{"ft_lang_label":"__label__en","ft_lang_prob":0.7349281,"math_prob":0.73885804,"size":580,"snap":"2022-40-2023-06","text_gpt3_token_len":153,"char_repetition_ratio":0.12847222,"word_repetition_ratio":0.24778761,"special_character_ratio":0.2672414,"punctuation_ratio":0.06666667,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9852809,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-31T16:57:58Z\",\"WARC-Record-ID\":\"<urn:uuid:249e3778-6b4e-492b-ae06-394de90800e4>\",\"Content-Length\":\"70265\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6a316fd0-a7c5-41a4-acc4-a3d69007f8fc>\",\"WARC-Concurrent-To\":\"<urn:uuid:ae7d60ab-8b93-4088-8bc9-b30380197603>\",\"WARC-IP-Address\":\"146.190.68.206\",\"WARC-Target-URI\":\"https://envisioncad.com/multiple-expressions/\",\"WARC-Payload-Digest\":\"sha1:NAK7B24ZXBJAAKOXMM6QNB4XNPHQD645\",\"WARC-Block-Digest\":\"sha1:HNGXKRHSCH4LBNHJ5FUXUV5D57522HWQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499888.62_warc_CC-MAIN-20230131154832-20230131184832-00058.warc.gz\"}"}