Search found 2 matches
- Sun Aug 27, 2023 12:58 pm
- Forum: Help Forum
- Topic: Probably really easy IF THEN question
- Replies: 5
- Views: 31114
Re: Probably really easy IF THEN question
Interestingly, you can actually use tables to bypass most of the if/then stuff here, like this. local dirs = ["go 9e, 9n, 18w, 2s, 16e, 5s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, 2w, 3n, 2w, 3s, d", "go 11s, 18e, 8n, 2w, 6s, 2w, 6n, 2w, 6s, 2w, 6n, 2w, 6s, 2w, 6n, 2w, 6s, 2w...
- Sat Aug 26, 2023 7:13 pm
- Forum: Help Forum
- Topic: Probably really easy IF THEN question
- Replies: 5
- Views: 31114
Re: Probably really easy IF THEN question
It works fine for me if floor is the number 1. If however floor is the string "1" send doesn't fire, but ends up being 2.
You probably need to add a line at the start.
You probably need to add a
Code: Select all
floor = tonumber(floor)