I’ve six of those code blocks and am desirous to shorten all of them whereas nonetheless having them work successfully. This code works the way in which that I supposed it to however is admittedly cumbersome.

    let strStatResult = strStat
    strengthModLabel.textual content = String(strStatResult)
    
    swap strStatResult 

I’ve considered utilizing for loops or whereas loops to shorten it however I’m not positive implement that every one the whereas shortening the code.

Lucas Rider is a brand new contributor to this web site. Take care in asking for clarification, commenting, and answering.
Try our Code of Conduct.