GRAPHREP
# check attribute "Released" for status of object
AVAL b:"Released"
IF (b="NOK") {
PEN color:$000000 w:0.1cm
FILL color:red
RECTANGLE x:1cm y:-1.15cm h:0.6cm w:0.9cm
FONT h:10pt color:$000000 bold
TEXT "NOK" x:1.1cm y:-1.05cm
}
#draw basic shape
PEN color:$000000 w:0.1cm
FILL color:$00ffff
RECTANGLE x:-1cm y:-1.15cm h:2.28cm w:1.95cm
FONT h:24pt color:$000000 bold
TEXT "PHR" x:-0.9cm y:-1.1cm
PEN color:$000000 w:0.16cm
LINE x1:-0.8cm y1:0.04cm x2:0.8cm y2:0.04cm
PEN color:$000000 w:0.16cm
LINE x1:-0.8cm y1:0.84cm x2:0.8cm y2:0.84cm
PEN color:$000000 w:0.16cm
LINE x1:-0.8cm y1:0.44cm x2:0.8cm y2:0.44cm
#display name below the object
FONT h:0.5cm color:$000000 bold
ATTR "Name" y:1.8cm w:c h:c