How to shorten your code

Code tips and tricks for beginners
Post Reply
Zim
Posts: 280
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 251 times
Been thanked: 128 times

How to shorten your code

Post by Zim »

You can shorten your code by putting more than one variable in one line.

Code: [Local Link Removed for Guests]


D1 = 5
D2 = 4
D3 = 0
D4 = 2
D5 = 14
D6 = 12
zims$ = "hello"

'can be expressed in one line as below

D1 = 5:D2 = 4:D3 = 0:D4 = 2:D5 = 14:D6 = 12:zims$ = "hello"


I am a beginner too, so if you see an error, please feel free to comment or correct me! :)
Post Reply