請幫助,下面是我在Visual Basic中的代碼。for循環中多個if語句
我的for
循環不會去第二個if
條件。它只是檢查第一個。我在這裏錯過了什麼?
謝謝!
If Not dsMarketingOrdIDs Is Nothing Then
For i = 0 To dsMarketingOrdIDs.Tables(0).Rows.Count - 1
If dtMarketingOrdIDs.Rows(i)("marketing_org_id") = 5 Then
If Not objALUtil.CheckPermission("KBAUTHORXTREMESUPPORT") Then
blnKbAuthorXtremeSupport = True
End If
If dtMarketingOrdIDs.Rows(i)("marketing_org_id") = 152 Then
If Not objALUtil.CheckPermission("KBAUTHORXTREMEPORTAL") Then
blnKbAuthorXtremePortal = True
End If
End If
End If
Next
End If