You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Changes
Issues I missed in #1271
- Fix formatting for line 229
- Instead of `error`, use `errorMessage`, as this collides with the
[error](https://create.roblox.com/docs/reference/engine/globals/LuaGlobals#error)
global (per
[pcall](https://create.roblox.com/docs/reference/engine/globals/LuaGlobals#pcall)
example)
- Fixed invalid syntax (trying to assign to variable inside if
statement)
## Checks
By submitting your pull request for review, you agree to the following:
- [x] This contribution was created in whole or in part by me, and I
have the right to submit it under the terms of this repository's open
source licenses.
- [x] I understand and agree that this contribution and a record of it
are public, maintained indefinitely, and may be redistributed under the
terms of this repository's open source licenses.
- [x] To the best of my knowledge, all proposed changes are accurate.
---------
The score is 1 when the server's attribute value (for example, Game Mode) is equal to the player's attribute value (for example, Preferred Game Mode). Otherwise, the signal score is 0.
387
385
388
386
```lua title="Joining player formula for server categorical signal"
389
-
ifserver_{attribute_name} =joining_player_{attribute_name} then
390
-
return1
387
+
ifserver_{attribute_name} ==joining_player_{attribute_name} then
388
+
return1
391
389
else
392
-
return0
390
+
return0
393
391
end
394
392
```
395
393
396
394
```lua title="Joining player example for server categorical signal"
397
395
localserver_GameMode="Survival"
398
396
localjoining_player_GameMode="Survival"
399
397
400
-
ifserver_GameMode=joining_player_GameModethen
401
-
return1
398
+
ifserver_GameMode==joining_player_GameModethen
399
+
return1
402
400
else
403
-
return0
401
+
return0
404
402
end
405
403
```
406
404
@@ -409,19 +407,19 @@ end
409
407
The score is 1 when the server's attribute value is equal to a constant value of true. Otherwise, the signal score is 0.
410
408
411
409
```lua title="Constant value formula for server categorical signal"
412
-
ifserver_{attribute_name} =constant_valuethen
413
-
return1
410
+
ifserver_{attribute_name} ==constant_valuethen
411
+
return1
414
412
else
415
-
return0
413
+
return0
416
414
end
417
415
```
418
416
419
417
```lua title="Constant value example for server categorical signal"
0 commit comments