Question:
Hi guys, I’ve been trying to make a language based on Python called Pulse (please tell me if this name is taken). I’ve done a number of commands but I’m stuck at the if statement, I just can’t get it to work. Repl link: https://replit.com/@NateDhaliwal/Pulse-Test-Code?s=app
def ifcon(conif,runif,conelif,runelif,runelse):
if conif:
runif
elif conelif:
runelif
else:
runelse
#############Or:#############
def ifcone(conifelif,runifelif,conifelif2,runifelif2):
if conifelif:
runifelif
elif conifelif2:
runifelif2
It is supposed to run an if statement.
conif is the condition for the if statement
runif is the code that will be run if the condition is met
coneif is like conif, but for elif
runelif is like conif, but for elif
runelse islike runif, but for else
The second version is an altered version of the first.
@NateDhaliwal I know this is off topic but how will you release the project later, will it have the Pulse.py for everyone to see or not? Will it be a template? I would like to know for possible future reference.