MWE:
\documentclass{book}
\usepackage{a4wide}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{polyglossia}
\setmainlanguage[spelling=new,babelshorthands=true]{german}
\usepackage[autostyle]{csquotes}
\usepackage[style=authortitle-icomp,backref=true,backrefstyle=two+,hyperref=true,isbn=false,backend=biber,citereset=chapter,bibencoding=utf8]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{file.bib}
@BOOK{b1,
author = { first1 last1},
title = {title1},
year = {1993},
note = {tt}
}
@BOOK{b2,
author = { first2 last2},
title = {title2},
year = {1994}
}
\end{filecontents}
\addbibresource{file.bib}
\begin{document}
text \footcite{b1} text.
text \footcite{b2} haha.
\end{document}
I want to achieve that the author of b1, which has some keyword in the note field, in this case tt, is formatted with \texttt{} while entries which don't have the keyword in the note field, are formatted in a standard way. There is nothing else in the note field than the keyword.
So, expanded it should give
\texttt{last1}, title1
last2, title2
in the footnotes as well as in the bibliography instead of
.
Thanks for the help.

\iffieldequalstrcommand. In the current version of the biblatex documentation it is in section 4.6.2 on page 182. – Willie Wong Sep 15 '15 at 19:21keywordfield (which will not be printed, unlike thenotefield) you just need\ifkeyword{tt}. Alternatively you can use theoptionsfield but then you will have to do a bit more work to set things up nicely. What do you need this for in your document? Maybe there is an easier solution. – moewe Sep 15 '15 at 19:30keywordsfield be an option for you? Or do you prefer thenotefield? (That is do you want the output or not?) But maybe using anauthorfield for anonymous sources such as this isn't the best idea in the first place ... – moewe Sep 15 '15 at 19:36authorfield blank. What you seem to put there is some kind of call number (?), but then certain kinds of "archive material" can be hard to handle. – moewe Sep 15 '15 at 19:43authorfield. – moewe Sep 15 '15 at 20:06\iffieldequalstrbut also\ifkeyword(I find the latter cleaner in this situation). – moewe Sep 15 '15 at 20:07\ifkeywordwould be cleaner. After reading the comments I personally prefer Alan's option of creating a new entry type. But I can see situations where having the keyword based answer can be helpful (for example, multiple different keywords that can stack). – Willie Wong Sep 16 '15 at 01:03\DeclareFieldFormatyou need\DeclareNameFormat. But for changes in the font for names you will want to use\mkbibnamelastand friends. – moewe Sep 16 '15 at 09:20