Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=Operators+reference+-+15488430
widthauto

Info

Simple Issue Language (SILâ„¢) provides several categories of operators for performing various operations on different data types. This page covers the main operator types, their usage, and type compatibility.

...

Code Block
struct Person {
    string name;      // position 0
    int age;         // position 1
    string address;  // position 2
}

Person p = {"Alice Smith", 25, "123 Main Street"};

// While p.name and p.address are preferred, you can use indexing:
string name = p[0];    // returns: "Alice Smith"
string addr = p[2];    // returns: "123 Main Street"

// Multiple values can be accessed:
return p[1], p[2];   // returns: 25, "123 Main Street"See also

...

Learn more