I am using Bool for my questions and if answer true i want to store a UINT score to the address. I can do it with 1 question but if I add Multiple it wont add all the trues to add a score. Is there a better method or am I on the right track? Note: I am A newbie at this.


struct Questions{

        bool areNice;

        bool areCool;
    //Questions only to be answered true or false answer wisely

   Questions[] internal answers;

   function AnswerTrueFalseOnly (address _user, bool _areNice,
        bool _areCool) external {
       answers.push(Questions( _areNice,

        if (_areNice == true) if (_arecool == true)  {
        return addscore(_user, _score);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.