Skip to content

Commit 528ad94

Browse files
slimerunnermatr1x-hackmudtukib
authored
Update to_gc_num.mdx (#505)
* Update to_gc_num.mdx adding details about invalid GC string * Update to_gc_num.mdx * Update to_gc_num.mdx * Update to_gc_num.mdx * Update to_gc_num.mdx * Update to_gc_num.mdx * Update to_gc_num.mdx * Update to_gc_num.mdx * Apply suggestions from code review Co-authored-by: Bryn Ward-Leikis <ward.leikis@gmail.com> --------- Co-authored-by: matr1x <53655672+matr1x-hackmud@users.noreply.github.com> Co-authored-by: Bryn Ward-Leikis <ward.leikis@gmail.com>
1 parent a0cd91d commit 528ad94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/scripting/scripts.lib/to_gc_num.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ The formatted GC string to be turned into a number.
2020

2121
Returns a number.
2222

23+
For invalid `gc_string` values, the following object is returned:
24+
25+
```js
26+
{
27+
ok: false,
28+
msg: "GC string \"" + gc_string + "\" is not in correct format. Example GC strings: \"1M234K567GC\", \"1B5KGC\", \"2MGC\", \"9GC\"."
29+
}
30+
```
31+
2332
## Example
2433

2534
```js

0 commit comments

Comments
 (0)