Guest GuyWhoAbruptlyDisappeared Posted March 17, 2014 Posted March 17, 2014 How do I make a multiple argument if statement in papyrus? I have spent way too much time than is reasonable trying to figure this out. If a == b and c ==d endIf This is nearly impossible to google because of the words involved. causes a massive amount of script errors.
Guest GuyWhoAbruptlyDisappeared Posted March 17, 2014 Posted March 17, 2014 Could do: if a == b if c == d That's what I have been doing. But, having coded in several languages and scripted for many games, not having the conditionals drives me insane. For example, in lua: if (a == f) and (c == d) or (a == d) and (b == c) then swallowdick() end Using only if, that becomes very complicated very quickly. if (a == f) if (c == d) swallowdick() endif elseif (a == d) if (b == c) swallowdick() endif endif
b3lisario Posted March 18, 2014 Posted March 18, 2014 http://www.creationkit.com/Operator_Reference#Logical_Operators
Guest GuyWhoAbruptlyDisappeared Posted March 18, 2014 Posted March 18, 2014 http://www.creationkit.com/Operator_Reference#Logical_Operators THANK YOU. That's exactly what I was looking for.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.