Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

checking if something is true. infinite

import time
bool1 = True
bool2 = False

While True
    if bool1 == True
        print("bool1 true")
        bool1 = False
        bool2 = True
        time.sleep(1)
    elseif bool2 == True
        print("bool1 true")
        bool2 = False
        bool1 = True
        time.sleep(1)
 
PREVIOUS NEXT
Tagged: #checking #infinite
ADD COMMENT
Topic
Name
7+8 =