I want to make it so an ‘if’ function only runs when it is not a clone. I’ve tried using ‘this.isNotClone’, but it doesn’t seem to work. Any help would be appreciated.
Thanks, MakerMan
I want to make it so an ‘if’ function only runs when it is not a clone. I’ve tried using ‘this.isNotClone’, but it doesn’t seem to work. Any help would be appreciated.
Thanks, MakerMan
Try this:
if(!this.isClone){
// Do stuff
}
(Note: “!
” = “not”)
You made a little mistake there, it is:
if(!(this.isClone)){
//Do stuff
}
You forgot the parenthesizes.
No. It should work the same without them.