I want to check a value is contained in the set 3,8,13,15,18,23,28, ..., etc.
; basically the set is defined by 3 + 5n
.
How can I achieve this with a simple condition?
Code:
if(/* condition here */) {
// value is part of set
} else {
// value is not part of set
}