Fixed ifelse and added newlines at printing

This commit is contained in:
macocianradu
2021-12-01 15:05:06 +01:00
parent 459c5f0b1d
commit 9ea420e337
6 changed files with 22 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ type TestType:
type TestSomeType: <"description">
testSomeType int (1..1) <"A time period multiplier, e.g. 1, 2 or 3 etc. A negative value can be used when specifying an offset relative to another date, e.g. -2 days.">
type TestZeroOneType:
type TestZeroOneType extends Period:
testZeroOneType int (1..1)
type ObservationPrimitive:
@@ -27,8 +27,17 @@ func EquityPriceObservation: <"Function specification for the observation of an
valuationDate ObservationPrimitive (0..1)
valuationTime int (0..1)
timeType TestType (0..1)
determinationMethod ObservationPrimitive (1..*)
determinationMethod ObservationPrimitive (1..1)
output:
observation ObservationPrimitive (0..1)
assign-output: if 2 = 3 then valuationDate
assign-output: if True and False then valuationDate
func Something: <"asd">
inputs:
equity1 boolean (1..1)
something1 boolean (1..1)
output:
valuation ObservationPrimitive (1..1)
assign-output: if True and False then determinationMethod else determinationMethod