To apply the validation of Max Number on 'Obtained Marks' field, then enter the value '8CS5A' in 'Subject Code' textbox and you can enter maxNumber upto 100
Conditional Expression with type 'string'
{{subjectdetailsForm.controls?.obtainedMarks?.errors?.maxNumber.message}}