diff --git a/c/todo.txt b/c/todo.txt index cee2c485d..dec3c771e 100644 --- a/c/todo.txt +++ b/c/todo.txt @@ -5,11 +5,6 @@ BUGFIXES vgrun mlr --ijson --opprint cat reg_test/input/small-non-nested-wrapped.json -* ok: - mlr --from ../data/small put '$new = NR == 3 ? $x : $i' - syntax error: - mlr --from ../data/small put '$new = (NR == 3 ? $x : $i) * 10' - ================================================================ TOP-OF-LIST SUMMARY diff --git a/doc/content-for-reference.html b/doc/content-for-reference.html index 15b3563b1..374e274f7 100644 --- a/doc/content-for-reference.html +++ b/doc/content-for-reference.html @@ -1319,16 +1319,15 @@ with the exception that the min and max functions are special: if one argument is non-null, it wins: POKI_RUN_COMMAND{{echo 'x=,y=3' | mlr put '$a=min($x,$y);$b=max($x,$y)'}}HERE -
-$ echo 'x=2,y=3' | mlr put '$a=$u+$v; $b=$x+$y' -x=2,y=3,b=5 --
-$ echo 'x=2,y=3' | mlr put '$a=$u+$v; $b=$x+$y; $c=$u+$y' -x=2,y=3,b=5,c=3 +$ echo 'x=2,y=3' | mlr put '$a=$u+$v; $b=$u+$y; $c=$x+$y' +x=2,y=3,b=3,c=5
+$ mlr put '$loadmillis = (ispresent($loadsec) ? $loadsec : 0.0) * 1000' data/het.dkvp +resource=/path/to/file,loadsec=0.45,ok=true,loadmillis=450.000000 +record_count=100,resource=/path/to/file,loadmillis=0.000000 +resource=/path/to/second/file,loadsec=0.32,ok=true,loadmillis=320.000000 +record_count=150,resource=/path/to/second/file,loadmillis=0.000000 +resource=/some/other/path,loadsec=0.97,ok=false,loadmillis=970.000000 ++