static string Technology(string post)

{
    if (post.Contains("Twitter") || post.Contains("elon"))
    {
        return "loser";
    }
    else
    {
        return "cool";
    }
}
  • tabular@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Could be a Ternary operator.

    Now this thread contains more Technology than most Musk ones.