I want to combine two if loop with 2 different count but I'm not sure how to combine them together. I show my code below:
x <- 0
y <- 0
if (U_x < 0){
x <- x + 1
}
if (U_y < 0){
y <- y + 1
}
So basically there will be two set of data U_x and U_y pass through the if loop, anyone can help me to combine these 2 if loops? Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire