Is incorrect capitalization, such as the lowercase “i” in
[Can] i [this sic] have an if statement within a
dialog box code?
considered a spelling mistake, or some other type of error?
Your question was,” Is it a spelling mistake?” The answer is definitely no. It is a grammatical error, a capitalization error, but not a spelling error. When you capitalize a word, you don’t change its spelling.