of     1   

AshRPG12
#159798983Thursday, April 09, 2015 10:47 PM GMT

When I came upon scripting. I used random sentences and I found a bluish-colored instance term in scripts called "and" lower-case letters. When you type in this without any editing symbols(e.g. --, (), etc), it appears dark bluish as if it was a special term alike "function", and etc. What is this term? I searched all over google but roblox wiki won't have any related results and yes, I did the roblox scripting wiki. If someone explains this very well, I will be appreciated.
AshRPG12
#159799109Thursday, April 09, 2015 10:49 PM GMT

Also, I know a segment of the term's meaning. It does another script segment that is located inside a unclear situation such as "if" and "elseif", plus others. I cannot explain how to use this is my question here.
Coinye
#159799275Thursday, April 09, 2015 10:50 PM GMT

It is used as a logical operator For example, true and true > true false and true > false false and false > false
eLunate
#159799347Thursday, April 09, 2015 10:51 PM GMT

A and B basically means like, if A is not nil or false, use B's value. Else use A's value. Opposite is true for 'or' (A or B)
X666IAMTHEDEVIL666X
#159799388Thursday, April 09, 2015 10:52 PM GMT

example wait(3) local P1 = game.Players:FindFirstChild("Player1") local P2 = game.Players:FindFirstChild("Player2") if (P1~=nil) and (P2~=nil) then P1.Character:MoveTo(P2.Character.Torso.Position)
Zawie
#159802808Thursday, April 09, 2015 11:29 PM GMT

A = true B = false if A = true and B = true then print('Both are true!') else print('One of them are false!') end
eLunate
#159802862Thursday, April 09, 2015 11:30 PM GMT

==*
Zawie
#159802973Thursday, April 09, 2015 11:31 PM GMT

@eL Yea your right sorry.
AshRPG12
#159866544Friday, April 10, 2015 8:43 PM GMT

I actually knew the way to use it but my question was did I use it correctly? Sorry for not using the output but I also wanted to know it's full function meaning.
SummerEquinox
#159867059Friday, April 10, 2015 8:50 PM GMT

"and" Makes it so for something to happen, multiple things need to have been done (rather than one) Such as do if (1==1) and (2==2) then print 'All is right in the world' end (Other operations can be included into an "and" statement as well) do if (1==1) and (2==2) then print 'All is right in the world' elseif (1==2) and (2==1) then print 'The world is ending' end end
AshRPG12
#183483152Saturday, February 13, 2016 4:30 AM GMT

i made this forum thread because i thought I used it the wrong way or the script didn't execute both arguments
128Gigabytes
#183484147Saturday, February 13, 2016 4:48 AM GMT

https://twitter.com/128Gigabytes/status/698367741674192896 c will be false unless it gets a pink t signal from a and b If a or b sends a balck f signal it will stop the pink t signals from reaching c.
keepitbummy
#183488185Saturday, February 13, 2016 6:14 AM GMT

Basically an argument like this: if Player.Name == "IllumlZoldyck" and Player.Health = 100 then print("Wow he's health") end
ParadigmaticAnon
#183489119Saturday, February 13, 2016 6:45 AM GMT

Ah, a community-based question-answering scheme. Splendid. The "and" keyword is merely a logical term within Lua that manipulates Boolean data values. We can utilize the logical AND/and operator to determine whether certain logical criteria has been fulfilled. An example would be the following: x = 1 and 2; --This would return the value of the second operand, 2. x = 2 and 1 --This would return the value of the second operand, 1. bool = true and false; --This would return false. bool = false and true --This would also return false. If the operands supplied to "and" are mixed Boolean values, the returned value of the operation will be false. If the values are both true simultaneously, the returned value will be the secondary value of the logical "and" operation.

    of     1