Without going into too much detail; you would use the calculate field tool and, in the expression field, click on the calculate expression icon and insert a code block similar to this:
dim FieldName
dim ExpValue
FieldName = "y"
if "FieldName" = "A" then
ExpValue = "100"
end if
For further information, search the help files for using code blocks.
Good Luck,
Frank