Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer ternary(integer bool, integer a, integer b)
- {
- if(bool == TRUE)
- return a;
- else
- return b;
- }
- default
- {
- state_entry()
- {
- integer first = 4;
- integer second = 2;
- llOwnerSay((string)ternary(first < second, first, second));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement