SirDanteDont 0 Posted September 30, 2020 Report Share Posted September 30, 2020 Boa noite a todos, Sou novato. Já vi algumas formas de reduzir a quantidade de "if's". Qual a melhor? Obrigado desde já. Cumprimentos Link to post Share on other sites
M6 156 Posted October 1, 2020 Report Share Posted October 1, 2020 Podes usar o switch. 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar." Link to post Share on other sites
SirDanteDont 0 Posted October 2, 2020 Author Report Share Posted October 2, 2020 Muito obrigado. Cumprimentos Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now