I just want that if the valuesToSubmit.personID or valuesToSubmit.dataID == '' is empty , it will
enter to if condition
and if not it will go to else
if (valuesToSubmit.personID == '' || valuesToSubmit.dataID == ''){
console.log("the value you've submit is empty")
}else{
console.log("the value you've submit is not empty")
}
this is the result when i tried to alert valuesToSubmit.personID (empty)
and this is the result when i send some value
this is the result in the console.log() when i tried to enter empty id ( valuesToSubmit.personID )
{}