Skip to content

Commit

Permalink
Solved Error : Conditional expressions require scalar logical operato…
Browse files Browse the repository at this point in the history
…rs (&& and ||)
  • Loading branch information
DamienCode404 committed Oct 18, 2024
1 parent 52883bb commit 67ef11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/camera/CAMERA_findIsotopes.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ print("calcIsotopeMatrix")
calcIsotopeMatrix <- function(maxiso = 4) {
if (!is.numeric(maxiso)) {
stop("Parameter maxiso is not numeric!\n")
} else if (maxiso < 1 | maxiso > 8) {
} else if (maxiso < 1 || maxiso > 8) {
stop(paste(
"Parameter maxiso must be between 1 and 8. ",
"Otherwise, use your own IsotopeMatrix.\n"
Expand Down

0 comments on commit 67ef11c

Please sign in to comment.