if commanddata = undefined