Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ifd(variable,value,competense,api)
- if variable == nil or value == nil or competense == nil or api == nil then
- printError("Usage:\n ifd\( <variable> , <value> , <competense> , <api>\)")
- else
- if competense == "=" then
- if variable == value then
- os.loadAPI(api)
- end
- elseif competense == "<" then
- if variable < value then
- os.loadAPI(api)
- end
- elseif competense == ">" then
- if variable > value then
- os.loadAPI(api)
- end
- elseif competense == "isnot" then
- if variable ~= value then
- os.loadAPI(api)
- end
- end
- end
- end
- function ford(variable,number1,number2,api)
- if variable == nil or number1 == nil or number2 == nil or api == nil then
- printError("Usage:\n ford( <variable> , <number 1> , <number 2> , <api>)")
- else
- for variable = number1, number2 do
- os.loadAPI(api)
- end
- end
- end
- local function p(txt) return print(txt) end
- local function scp(x,y) return term.setCursorPos(x,y) end
- local function stc(c) return term.setTextColor(c) end
- local function s(sl) return sleep(sl) end
- local function sbc(c) return term.setBackgoundColor(c) end
- local function gcp(xy) return xy = term.getCursorPos() end
- local function w(txt) return write(txt) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement