More about giving your evidence
If the accused person says they are not guilty, there may be a trial and your job is to tell the court what you know. The judge or sheriff needs witnesses to give their evidence so that they can build up a picture of what has happened.
Without witnesses, the judge, sometimes a jury or sheriff won't know what has happened and won't be able to come to a proper decision at the end of the case. One by one, the witnesses will tell the court what happened or what they know. This is their evidence.
The procurator fiscal or lawyers may ask you questions about something that may have happened to you or to someone else. Or they may ask you about something you may have seen or heard.
As a witness, your job is to answer the questions truthfully and tell the court what you know. Some questions may be difficult to answer or involve telling a secret. This is ok. You should remember that the court often hears people talking about personal things and they will understand how you feel. You should take your time and tell the truth.
The procurator fiscal and lawyers will want to check what you've said. They may test what you have said by repeating some questions. This is normal. The only thing you should think about is telling the court the truth.