my question is very simple. we all know the "#"sign
which is used to get the amount of something.
now my question is:
is there any other like ‘sings’ like that in Roblox or not?
my question is very simple. we all know the "#"sign
which is used to get the amount of something.
now my question is:
is there any other like ‘sings’ like that in Roblox or not?
Nupe its the only one, of course with the double minus --
for the comments
Does this answer your question?
sadly not it would help if their was though.
well, there are a bunch of different things, but they’re not necessarily all prefixes. A lot of the signs are used when formatting strings.
The name you’re looking for is “unary operators” (as opposed to e.g. “binary operators” like a + b
)
There are a few like #
, -
, and not
.
The question is too generic, I guess. It depends on the symbol/keyword type and where it is used.
Here is a list of symbols and the usage of each one.
Type | Operator Meaning | Operator | Usage |
---|---|---|---|
Symbol | Equals | = | Assign left-hand side to right-hand side |
Symbol | Is equal to | == | Check whether the conditions are equal |
Symbol | Greater than | > | Check whether the first condition is greater than the second one |
Symbol | Less than | < | Check whether the first condition is less than the second one |
Symbol | Greater than or equal to | >= | Check whether the first condition is greater than or equal to the second one |
Symbol | Less than or equal to | <= | Check whether the first condition is less than or equal to the second one |
Symbol | Addition | + | Add two values |
Symbol | Subtraction | - | Subtract two values - the first value used in operation |
Symbol | Multiplication | * | Multiply two values |
Symbol | Division | / | Divide the first value by the second value |
Symbol | Exponentiation | ^ | Take the first value as the base and the second value as the power |
Symbol | Modulus | % | Take the first value as the dividend and the second value as the divisor |
Symbol | Unary negation | - | Essentially used for the subtract operation, but this one is used for converting the number to signed |
Symbol | Concatenation | ⋅⋅ | Concatenate two strings |
Symbol | Compound addition | += | Add the assigned value to the left-hand value |
Symbol | Compound subtraction | -= | Subtract the assigned value from the left-hand value |
Symbol | Compound multiplication | *= | Multiply the assigned value by the left-hand value |
Symbol | Compound division | /= | Divide the left-hand value by the assigned value |
Symbol | Compound modulus | %= | Take the remainder of the left-hand value by dividing by the assigned value |
Symbol | Compound exponentiation | ^= | Raise the assigned value to the power of the left-hand value |
Symbol | Compound concatenation | ⋅⋅= | Concatenate the left-hand string with the assigned string |
Symbol | Unary hashtag | # | Get the length of a string or a table |
Symbol | Single quotes | ‘’ | Construct new strings |
Symbol | Double quotes | “” | Construct new strings |
Symbol | Double square brackets | [[ ]] | Enclose strings that traverse several lines |
Symbol | Double hyphens | – | Comment a line |
Symbol | Double square brackets and double hyphens | –[[ --]] | Enclose strings that traverse several commented lines |
Symbol | Backslash | \ | Escape inline quotes in a string |
Keyword | Unary not operation | not | Return the opposite boolean value |
Keyword | and operation | and | Compare the first value with the second value (AND logic gate) |
Keyword | or operation | or | Compare the first value with the second value (OR logic gate) |
Keyword | TODO | TODO | Bold the word “todo” in uppercase letters in a commented line |