def getFirstValue(gcodeText, word):
 for line in archive.getTextLines(gcodeText):
  splitLine = gcodec.getSplitLineBeforeBracketSemicolon(line)
  if (gcodec.getFirstWord(splitLine) == word):
   return splitLine[1]
 return ''

def getFirstValue ( gcodeText , word ) : for line in archive . getTextLines ( gcodeText ) : splitLine = gcodec . getSplitLineBeforeBracketSemicolon ( line ) if ( gcodec . getFirstWord ( splitLine ) == word ) : return splitLine [ 1 ] return ''
get the value from the first line which starts with the given word .