vba functions Msgbox and Inputbox functions not working

i am having a problem with these two commands they seem to work only when they want to.

i have an if statement saying if something is true to give me a msgbox "test" 

and another if statement further down that says if something isn't true to give me a inputbox "test"

i know that the lines are being done because i have a debug.print right after printing something.

so i don't know what to do now..... any suggestions?

SolidworksApi macros