(a) The liability of an issuer, nominated person, or adviser for an action or omission is governed by the law of the jurisdiction chosen by an agreement in the form of a record signed or otherwise authenticated by the affected parties in the manner provided in AS 45.05.104 or by a provision in the letter of credit, confirmation, or other undertaking. The jurisdiction whose law is chosen does not need to bear a relation to the transaction.
(b) Unless (a) of this section applies, the liability of an issuer, nominated person, or adviser for action or omission is governed by the law of the jurisdiction in which the issuer, nominated person, or adviser is located. The issuer, nominated person, or adviser is considered to be located at the address indicated in the undertaking of the issuer, nominated person, or adviser. If more than one address is indicated, the issuer, nominated person, or adviser is considered to be located at the address from which the undertaking of the issuer, nominated person, or adviser was issued. For the purpose of jurisdiction, choice of law, and recognition of interbranch letters of credit, but not enforcement of a judgment, all branches of a bank are considered separate juridical entities, and a bank is considered to be located at the place where the bank's relevant branch is considered to be located under this subsection.
(c) Except as otherwise provided in this subsection, the liability of an issuer, nominated person, or adviser is governed by rules of custom or practice, such as the Uniform Customs and Practice for Documentary Credits, to which the letter of credit, confirmation, or other undertaking is expressly made subject. If this chapter would govern the liability of an issuer, nominated person, or adviser under (a) or (b) of this section, if the relevant undertaking incorporates rules of custom or practice, and if there is conflict between this chapter and those rules as applied to that undertaking, those rules govern except to the extent of a conflict with the nonvariable provisions specified in AS 45.05.103 (c).
(d) If there is conflict between this chapter and AS 45.03, AS 45.04, AS 45.14, or AS 45.29 this chapter governs.
(e) The forum for settling disputes arising out of an undertaking within this chapter may be chosen in the manner and with the binding effect that governing law may be chosen under (a) of this section.